Module test_utils

Source
Expand description

Test utils for seismic primitives, e.g. SeismicTransactionSigned

Functions§

client_decrypt
Decrypt ciphertext using network public key and client private key
client_encrypt
Encrypt plaintext using network public key and client private key
get_ciphertext
Encrypt plaintext using network public key and client private key
get_client_io_sk
Get the client’s sk for tx io
get_encryption_nonce
Get the encryption nonce
get_network_public_key
Get the network public key
get_plaintext
Get the plaintext for a seismic transaction
get_seismic_elements
Get the seismic elements
get_seismic_tx
Get a seismic transaction
get_signed_seismic_tx
Get a signed seismic transaction
get_signed_seismic_tx_bytes
Create a seismic transaction
get_signed_seismic_tx_encoding
Get the encoding of a signed seismic transaction
get_signed_seismic_tx_typed_data
Create a seismic transaction with typed data
get_signing_private_key
Get the client’s signing private key
get_unsigned_seismic_tx_request
Get an unsigned seismic transaction request
get_unsigned_seismic_tx_typed_data
Get an unsigned seismic transaction typed data
get_wrong_private_key
Get a wrong private secp256k1 key
sign_seismic_tx
Sign a seismic transaction
sign_seismic_typed_tx
signes a [SeismicTypedTransaction] using the provided [SigningKey]
sign_tx
Signs an arbitrary [TransactionRequest] using the provided wallet