pub struct SingleOwnerChunk {
pub identifier: Identifier,
pub signature: Signature,
pub owner: EthAddress,
pub span: Span,
pub payload: Vec<u8>,
}Expand description
A single-owner chunk. The signature commits to identifier || cacAddress, where cacAddress is the BMT address of span || payload.
Fields§
§identifier: IdentifierSOC identifier.
signature: Signature65-byte signature over identifier || cacAddress.
owner: EthAddressRecovered owner address (last 20 bytes of keccak(pubkey)).
span: Span8-byte little-endian span.
payload: Vec<u8>Raw payload (≤ 4096 bytes).
Implementations§
Trait Implementations§
Source§impl Clone for SingleOwnerChunk
impl Clone for SingleOwnerChunk
Source§fn clone(&self) -> SingleOwnerChunk
fn clone(&self) -> SingleOwnerChunk
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SingleOwnerChunk
impl Debug for SingleOwnerChunk
Source§impl PartialEq for SingleOwnerChunk
impl PartialEq for SingleOwnerChunk
Source§fn eq(&self, other: &SingleOwnerChunk) -> bool
fn eq(&self, other: &SingleOwnerChunk) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for SingleOwnerChunk
impl StructuralPartialEq for SingleOwnerChunk
Auto Trait Implementations§
impl Freeze for SingleOwnerChunk
impl RefUnwindSafe for SingleOwnerChunk
impl Send for SingleOwnerChunk
impl Sync for SingleOwnerChunk
impl Unpin for SingleOwnerChunk
impl UnsafeUnpin for SingleOwnerChunk
impl UnwindSafe for SingleOwnerChunk
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