pub enum Wallet {
Account(Wallet),
UTxO(Wallet),
Delegation(Wallet),
}
Variants§
Implementations§
source§impl Wallet
impl Wallet
pub fn new_account<RNG>(rng: &mut RNG, discrimination: Discrimination) -> Walletwhere RNG: CryptoRng + RngCore,
pub fn import_account<P: AsRef<Path>>( secret_key_file: P, spending_counter: Option<SpendingCounter>, discrimination: Discrimination ) -> Wallet
pub fn new_account_with_discrimination<RNG>( rng: &mut RNG, discrimination: Discrimination ) -> Walletwhere RNG: CryptoRng + RngCore,
pub fn from_existing_account( signing_key_bech32: &str, spending_counter: Option<SpendingCounter>, discrimination: Discrimination ) -> Wallet
pub fn discrimination(&self) -> Discrimination
pub fn to_initial_fund(&self, value: u64) -> InitialUTxO
pub fn to_initial_token(&self, value: u64) -> Destination
pub fn new_utxo<RNG>(rng: &mut RNG) -> Walletwhere RNG: CryptoRng + RngCore,
pub fn new_utxo_with_discrimination<RNG>( rng: &mut RNG, discrimination: Discrimination ) -> Walletwhere RNG: CryptoRng + RngCore,
pub fn new_delegation<RNG>( delegation_identifier: &AccountIdentifier, rng: &mut RNG ) -> Walletwhere RNG: CryptoRng + RngCore,
pub fn new_delegation_with_discrimination<RNG>( delegation_identifier: &AccountIdentifier, rng: &mut RNG, discrimination: Discrimination ) -> Walletwhere RNG: CryptoRng + RngCore,
pub fn secret_key(&self) -> SecretKey<Ed25519Extended>
pub fn save_to_path<P: AsRef<Path>>(&self, path: P) -> Result<()>
pub fn save_to<W: Write>(&self, w: W) -> Result<()>
pub fn address(&self) -> Address
pub fn public_key(&self) -> PublicKey<Ed25519>
pub fn public_key_bech32(&self) -> String
pub fn address_bech32(&self, discrimination: Discrimination) -> String
pub fn sign_slice( &self, data: &[u8] ) -> Signature<TransactionBindingAuthDataPhantom, Ed25519>
sourcepub fn signing_key_to_string(&self) -> String
pub fn signing_key_to_string(&self) -> String
Temporary method exposing private key
pub fn identifier(&self) -> Identifier<Ed25519>
pub fn account_id(&self) -> AccountIdentifier
pub fn delegation_key(&self) -> Identifier<Ed25519>
pub fn add_input_with_value(&self, value: Value) -> Input
pub fn add_input<Extra: Payload>( &self, payload: PayloadSlice<'_, Extra>, iobuilder: &mut InputOutputBuilder, fees: &LinearFee ) -> Result<(), FragmentBuilderError>where LinearFee: FeeAlgorithm,
pub fn mk_witness( &self, block0_hash: &Hash, signing_data: &TransactionSignDataHash ) -> Witness
pub fn confirm_transaction(&mut self)
pub fn confirm_transaction_at_lane(&mut self, lane: usize)
pub fn decrement_counter(&mut self)
pub fn spending_counter(&self) -> Result<SpendingCounterIncreasing, Error>
pub fn stake_key(&self) -> Option<UnspecifiedAccountIdentifier>
pub fn delegation_cert_for_block0( &self, valid_until: BlockDate, pool_id: PoolId ) -> Initial
pub fn to_committee_id(&self) -> CommitteeIdDef
pub fn update_counter(&mut self, counter: SpendingCounter)
pub fn witness_data(&self) -> WitnessData
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Wallet
impl Send for Wallet
impl Sync for Wallet
impl Unpin for Wallet
impl UnwindSafe for Wallet
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request