Trait tx_bakery::wallet::Wallet

source ·
pub trait Wallet {
    // Required methods
    fn sign_transaction(&self, tx: &FixedTransaction) -> FixedTransaction;
    fn get_change_pkh(&self) -> Ed25519PubKeyHash;
    fn get_change_addr(&self) -> Address;
}
Expand description

Cardano wallet that has access to a private key (directly or indirectly) and able to sign a transaction

Required Methods§

source

fn sign_transaction(&self, tx: &FixedTransaction) -> FixedTransaction

Signs a fully built transaction

source

fn get_change_pkh(&self) -> Ed25519PubKeyHash

Query the public key hash used by this wallet

source

fn get_change_addr(&self) -> Address

Query the wallet address

Implementors§