pub struct CreateAccountsProof {
pub proof: ValidityProof,
pub address_tree_info: PackedAddressTreeInfo,
pub output_state_tree_index: u8,
pub state_tree_index: Option<u8>,
}Expand description
Proof data for instruction params when creating new compressed accounts.
Used in the INIT flow - pass directly to instruction data.
All accounts use the same address tree, so only one address_tree_info is needed.
Fields§
§proof: ValidityProofThe validity proof.
address_tree_info: PackedAddressTreeInfoSingle packed address tree info (all accounts use same tree).
output_state_tree_index: u8Output state tree index for new compressed accounts.
state_tree_index: Option<u8>State merkle tree index (needed for mint creation decompress validation). This is optional to maintain backwards compatibility.
Trait Implementations§
Source§impl BorshDeserialize for CreateAccountsProof
impl BorshDeserialize for CreateAccountsProof
fn deserialize_reader<R>(reader: &mut R) -> Result<CreateAccountsProof, Error>where
R: Read,
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSerialize for CreateAccountsProof
impl BorshSerialize for CreateAccountsProof
Source§impl Clone for CreateAccountsProof
impl Clone for CreateAccountsProof
Source§fn clone(&self) -> CreateAccountsProof
fn clone(&self) -> CreateAccountsProof
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CreateAccountsProof
impl RefUnwindSafe for CreateAccountsProof
impl Send for CreateAccountsProof
impl Sync for CreateAccountsProof
impl Unpin for CreateAccountsProof
impl UnwindSafe for CreateAccountsProof
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