Skip to content

Latest commit

 

History

History
106 lines (49 loc) · 3.1 KB

bitcoin_multisign_validator.md

File metadata and controls

106 lines (49 loc) · 3.1 KB

Module 0x4::bitcoin_multisign_validator

Bitcoin multisign auth validator

Struct BitcoinMultisignValidator

struct BitcoinMultisignValidator has drop, store

Constants

there defines auth validator id for each auth validator

const ErrorGenesisInitError: u64 = 1;

Function auth_validator_id

public fun auth_validator_id(): u64

Function genesis_init

public(friend) fun genesis_init()

Function init_for_upgrade

Init function called by upgrade. This module is upgrade after genesis, so we provide this function for upgrade. When rest the genesis, we can remove this function.

public fun init_for_upgrade()

Function validate

public fun validate(authenticator_payload: vector<u8>)