Skip to content

Latest commit

 

History

History
70 lines (33 loc) · 2 KB

bitcoin_validator.md

File metadata and controls

70 lines (33 loc) · 2 KB

Module 0x3::bitcoin_validator

This module implements Bitcoin validator with the ECDSA recoverable signature over Secp256k1.

Struct BitcoinValidator

struct BitcoinValidator has drop, store

Constants

there defines auth validator id for each auth validator

const BITCOIN_AUTH_VALIDATOR_ID: u64 = 1;

Function auth_validator_id

public fun auth_validator_id(): u64

Function validate

public(friend) fun validate(authenticator_payload: vector<u8>): bitcoin_address::BitcoinAddress