types/wallet

Types

A wallet type for a non-smart contract address.

Constructors

  • Wallet { pkh: VerificationKeyHash, sc: VerificationKeyHash }

A list of wallets for non-smart contract addresses.

Alias

Wallets = List<Wallet>

Functions

to_vks(wallets: Wallets) -> List<VerificationKeyHash>

Convert a list of wallets into a list of public key hashes. This is useful when doing multisig validation. The output order respects the input order.

wallet.to_vks(datum.wallets)

is_valid(wallet: Wallet) -> Bool

Check if a wallet has a bad form and needs to be bypassed. The pkh must be the length 56 hex string and the sc is either empty or it is also a length 56 hex string.

wallet.is_valid(datum.wallet)
Search Document