pub struct TonWallet {
pub key_pair: KeyPair,
pub version: WalletVersion,
pub address: TonAddress,
pub wallet_id: i32,
}Fields§
§key_pair: KeyPair§version: WalletVersion§address: TonAddress§wallet_id: i32Implementations§
source§impl TonWallet
impl TonWallet
pub fn derive( workchain: i32, version: WalletVersion, key_pair: &KeyPair, wallet_id: i32, ) -> Result<TonWallet, TonCellError>
pub fn derive_default( version: WalletVersion, key_pair: &KeyPair, ) -> Result<TonWallet, TonCellError>
pub fn create_external_message<T: AsRef<[ArcCell]>>( &self, expire_at: u32, seqno: u32, internal_messages: T, state_init: bool, ) -> Result<Cell, TonMessageError>
pub fn create_external_body<T: AsRef<[ArcCell]>>( &self, expire_at: u32, seqno: u32, internal_messages: T, ) -> Result<Cell, TonCellError>
pub fn sign_external_body( &self, external_body: &Cell, ) -> Result<Cell, TonMessageError>
pub fn wrap_signed_body( &self, signed_body: Cell, state_init: bool, ) -> Result<Cell, TonMessageError>
Trait Implementations§
impl Eq for TonWallet
impl StructuralPartialEq for TonWallet
Auto Trait Implementations§
impl Freeze for TonWallet
impl RefUnwindSafe for TonWallet
impl Send for TonWallet
impl Sync for TonWallet
impl Unpin for TonWallet
impl UnwindSafe for TonWallet
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)