#[repr(C)]pub struct WinterWalletAccount {
pub id: [u8; 32],
pub root: WinternitzRoot,
pub bump: [u8; 1],
}Expand description
Deserialized WinterWallet account state.
Mirrors the on-chain WinterWallet layout: id(32) + root(32) + bump(1).
Fields§
§id: [u8; 32]Wallet ID — the merklized root of the initial Winternitz pubkey.
root: WinternitzRootCurrent Winternitz root the wallet expects for signature verification.
bump: [u8; 1]PDA bump seed.
Implementations§
Source§impl WinterWalletAccount
impl WinterWalletAccount
Sourcepub fn from_bytes(data: &[u8]) -> Result<Self, Error>
pub fn from_bytes(data: &[u8]) -> Result<Self, Error>
Deserialize from raw account data bytes.
Requires exactly WALLET_ACCOUNT_LEN (65) bytes.
Auto Trait Implementations§
impl Freeze for WinterWalletAccount
impl RefUnwindSafe for WinterWalletAccount
impl Send for WinterWalletAccount
impl Sync for WinterWalletAccount
impl Unpin for WinterWalletAccount
impl UnsafeUnpin for WinterWalletAccount
impl UnwindSafe for WinterWalletAccount
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