Bitcoin multisign auth validator
- Struct
BitcoinMultisignValidator
- Constants
- Function
auth_validator_id
- Function
genesis_init
- Function
init_for_upgrade
- Function
validate
use 0x2::hash;
use 0x2::signer;
use 0x2::tx_context;
use 0x3::auth_payload;
use 0x3::auth_validator;
use 0x3::auth_validator_registry;
use 0x3::ecdsa_k1;
use 0x4::multisign_account;
struct BitcoinMultisignValidator has drop, store
there defines auth validator id for each auth validator
const BITCOIN_MULTISIGN_VALIDATOR_ID: u64 = 2;
const ErrorGenesisInitError: u64 = 1;
public fun auth_validator_id(): u64
public(friend) fun genesis_init()
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()