pub struct EventProof {
pub proof: Proof,
pub event_hash: [u8; 32],
pub pubkey_hash: [u8; 32],
}Expand description
STARK proof of event authenticity
Fields§
§proof: ProofThe STARK proof
event_hash: [u8; 32]Public inputs (event hash, claimed pubkey)
pubkey_hash: [u8; 32]Implementations§
Source§impl EventProof
impl EventProof
Sourcepub fn deserialize(bytes: &[u8]) -> Result<Self, StarkError>
pub fn deserialize(bytes: &[u8]) -> Result<Self, StarkError>
Deserialize proof from bytes
Trait Implementations§
Source§impl Clone for EventProof
impl Clone for EventProof
Source§fn clone(&self) -> EventProof
fn clone(&self) -> EventProof
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 EventProof
impl RefUnwindSafe for EventProof
impl Send for EventProof
impl Sync for EventProof
impl Unpin for EventProof
impl UnwindSafe for EventProof
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