assist/types/wallet
Types
A wallet type for a non-smart contract address.
Constructors
-
Wallet { pkh: PublicKeyHash, sc: PublicKeyHash }
A list of wallets for non-smart contract addresses.
Alias
Wallets = List<Wallet>
Functions
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)
to_vks(wallets: Wallets) -> List<PublicKeyHash>
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)