Module wallet

Source
Expand description

Wallet-like features

Structs§

MnemonicGenerator
SignedMessage
Represents the signature of a signed message
Wallet
A collection of secret keys. This simplified signing by matching the secret keys to the correct inputs automatically.

Functions§

mnemonic_generator
Create MnemonicGenerator instance
mnemonic_generator_generate
Generate mnemonic sentence using random entropy
mnemonic_generator_generate_from_entropy
Generate mnemonic sentence using provided entropy
verify_signature
Verify that the signature is presented to satisfy SigmaProp conditions.
wallet_add_secret
Add a new secret to the wallets prover
wallet_from_mnemonic
Create Wallet instance loading secret key from mnemonic Returns Err if a DlogSecretKey cannot be parsed from the provided phrase
wallet_from_secrets
Create Wallet from secrets
wallet_generate_commitments
Generate Commitments for unsigned tx
wallet_generate_commitments_for_reduced_transaction
Generate Commitments for reduced transaction
wallet_sign_message_using_p2pk
Sign an arbitrary message using a P2PK address
wallet_sign_reduced_transaction
Signs a reduced transaction (generating proofs for inputs)
wallet_sign_reduced_transaction_multi
Signs a multi signature reduced transaction
wallet_sign_transaction
Signs a transaction
wallet_sign_transaction_multi
Signs a multi signature transaction

Type Aliases§

ConstSignedMessagePtr
ConstWalletPtr
MnemonicGeneratorPtr
SignedMessagePtr
WalletPtr