pub struct OracleCommit {
pub request_id: [u8; 32],
pub commit_hash: [u8; 32],
pub validator_pk: Vec<u8>,
pub committed_at: u64,
}Expand description
A validator’s commit to a specific oracle request response. Written to State by SubmitOracleCommit transaction.
Fields§
§request_id: [u8; 32]§commit_hash: [u8; 32]blake3(“oracle:commit:” || validator_pk || request_id || response_body)
validator_pk: Vec<u8>Validator’s Schnorrkel pubkey (used in commit hash).
committed_at: u64Trait Implementations§
Source§impl Clone for OracleCommit
impl Clone for OracleCommit
Source§fn clone(&self) -> OracleCommit
fn clone(&self) -> OracleCommit
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 OracleCommit
impl Debug for OracleCommit
Source§impl<'de> Deserialize<'de> for OracleCommit
impl<'de> Deserialize<'de> for OracleCommit
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for OracleCommit
impl RefUnwindSafe for OracleCommit
impl Send for OracleCommit
impl Sync for OracleCommit
impl Unpin for OracleCommit
impl UnsafeUnpin for OracleCommit
impl UnwindSafe for OracleCommit
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