Skip to main content

Module utils

Module utils 

Source

Functionsยง

blake2b256_of_sig
Compute the Blake2b256 hash of the serialized (flag-prefixed) bytes of a [UserSignature], matching the digest used for non-[MoveAuthenticator] signatures by [UserSignature::auth_digest].
create_fake_transaction
make_committee_key
make_committee_key_num
make_move_authenticator_sig
Build a [UserSignature::MoveAuthenticator] and the underlying [MoveAuthenticator] for the given address, for use in tests.
make_move_authenticator_tx
Make a transaction signed with MoveAuthenticator for testing.
make_passkey_authenticator_sig
Build a [UserSignature::PasskeyAuthenticator] backed by a freshly-generated Secp256r1 key pair, for use in tests.
make_sponsored_move_authenticator_tx
Make a sponsored transaction where both sender and sponsor sign with [MoveAuthenticator], for use in tests.
make_sponsored_regular_sig_tx
Make a sponsored transaction where both sender and sponsor sign with regular (Ed25519) signatures, for use in tests.
make_sponsored_transaction_data
Make sponsored [Transaction] with a transfer-IOTA programmable transaction and a random gas object, for use in tests.
make_transaction
Make a user signed transaction with the given sender and its keypair. This is not verified or signed by authority.
make_transaction_data
make_upgraded_multisig_tx
to_sender_signed_transaction
to_sender_signed_transaction_with_multi_signers
to_sender_signed_transaction_with_optional_sponsor