pub struct OpCommitment {
pub ffv: Ffv,
pub nonce: u64,
pub op_type: TypeCommitment,
pub metadata: StrictHash,
pub globals: MerkleHash,
pub inputs: MerkleHash,
pub assignments: MerkleHash,
}
Fields§
§ffv: Ffv
§nonce: u64
§op_type: TypeCommitment
§metadata: StrictHash
§globals: MerkleHash
§inputs: MerkleHash
§assignments: MerkleHash
Trait Implementations§
Source§impl Clone for OpCommitment
impl Clone for OpCommitment
Source§fn clone(&self) -> OpCommitment
fn clone(&self) -> OpCommitment
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 moreSource§impl CommitEncode for OpCommitment
impl CommitEncode for OpCommitment
Source§type CommitmentId = OpId
type CommitmentId = OpId
Type of the resulting commitment.
Source§fn commit_encode(&self, engine: &mut CommitEngine)
fn commit_encode(&self, engine: &mut CommitEngine)
Encodes the data for the commitment by writing them directly into a
std::io::Write
writer instanceSource§impl Debug for OpCommitment
impl Debug for OpCommitment
Source§impl Hash for OpCommitment
impl Hash for OpCommitment
Source§impl PartialEq for OpCommitment
impl PartialEq for OpCommitment
Source§impl StrictDecode for OpCommitment
impl StrictDecode for OpCommitment
fn strict_decode( reader: &mut impl TypedRead, ) -> Result<OpCommitment, DecodeError>
fn strict_read(reader: impl ReadRaw) -> Result<Self, DecodeError>
Source§impl StrictDumb for OpCommitment
impl StrictDumb for OpCommitment
fn strict_dumb() -> OpCommitment
Source§impl StrictEncode for OpCommitment
impl StrictEncode for OpCommitment
fn strict_encode<W>(&self, writer: W) -> Result<W, Error>where
W: TypedWrite,
fn strict_write(&self, writer: impl WriteRaw) -> Result<(), Error>
Source§impl StrictStruct for OpCommitment
impl StrictStruct for OpCommitment
const ALL_FIELDS: &'static [&'static str]
fn strict_check_fields()
fn strict_type_info() -> TypeInfo<Self>
Source§impl StrictType for OpCommitment
impl StrictType for OpCommitment
const STRICT_LIB_NAME: &'static str = LIB_NAME_RGB_COMMIT
fn strict_name() -> Option<TypeName>
impl Copy for OpCommitment
impl Eq for OpCommitment
impl StrictProduct for OpCommitment
impl StructuralPartialEq for OpCommitment
Auto Trait Implementations§
impl Freeze for OpCommitment
impl RefUnwindSafe for OpCommitment
impl Send for OpCommitment
impl Sync for OpCommitment
impl Unpin for OpCommitment
impl UnwindSafe for OpCommitment
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> CommitId for Twhere
T: CommitEncode,
impl<T> CommitId for Twhere
T: CommitEncode,
fn commit(&self) -> CommitEngine
Source§fn commit_id(&self) -> <T as CommitEncode>::CommitmentId
fn commit_id(&self) -> <T as CommitEncode>::CommitmentId
Performs commitment to client-side-validated data
Source§impl<T> CommitmentLayout for Twhere
T: CommitEncode + StrictDumb,
impl<T> CommitmentLayout for Twhere
T: CommitEncode + StrictDumb,
fn commitment_layout() -> CommitLayout
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.