Skip to main content

Module utils

Module utils 

Source

Re-exports§

pub use crate::move_authenticator::MoveAuthenticator;

Functions§

blake2b256_of_sig
Compute the Blake2b256 hash of the serialized (flag-prefixed) bytes of a GenericSignature, matching the digest used for non-MoveAuthenticator signatures by crate::transaction::auth_digest_for_sig.
create_fake_transaction
keys
make_committee_key
make_committee_key_num
make_move_authenticator_sig
Build a GenericSignature::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 GenericSignature::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 TransactionData 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
multisig_keys
to_sender_signed_transaction
to_sender_signed_transaction_with_multi_signers
to_sender_signed_transaction_with_optional_sponsor