Struct thor::wallet::delegation::Wallet
source · pub struct Wallet {
rng: ChaChaRng,
signing_keys: Vec<SpendingKey>,
delegations: Vec<Identifier>,
discrimination: Discrimination,
}
Expand description
wallet for an delegation
Fields§
§rng: ChaChaRng
§signing_keys: Vec<SpendingKey>
the spending key
delegations: Vec<Identifier>
the identifier of delegated account
discrimination: Discrimination
Implementations§
source§impl Wallet
impl Wallet
pub fn generate<RNG>(rng: &mut RNG, discrimination: Discrimination) -> Selfwhere RNG: CryptoRng + RngCore,
pub fn generate_new_signing_key( &mut self, delegation: AccountIdentifier ) -> &SpendingKey
pub fn stake_key(&self) -> UnspecifiedAccountIdentifier
pub fn delegation(&self, i: usize) -> &AccountIdentifier
pub fn address(&self) -> Address
pub fn address_nth(&self, i: usize) -> Address
pub fn identifier(&self) -> Identifier<Ed25519>
pub fn signing_key(&self, i: usize) -> &SpendingKey
pub fn last_delegation_identifier(&self) -> AccountIdentifier
pub fn last_signing_key(&self) -> &SpendingKey
pub fn mk_witness( &self, block0_hash: &Hash, signing_data: &TransactionSignDataHash ) -> Witness
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