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§
sourcefn sign_transaction(&self, tx: &FixedTransaction) -> FixedTransaction
fn sign_transaction(&self, tx: &FixedTransaction) -> FixedTransaction
Signs a fully built transaction
sourcefn get_change_pkh(&self) -> Ed25519PubKeyHash
fn get_change_pkh(&self) -> Ed25519PubKeyHash
Query the public key hash used by this wallet
sourcefn get_change_addr(&self) -> Address
fn get_change_addr(&self) -> Address
Query the wallet address