pub enum ProofOfPubl {
Miner(TinyBlob),
Custom(TinyBlob),
}Expand description
Proof of publication.
Variants§
Trait Implementations§
Source§impl Clone for ProofOfPubl
impl Clone for ProofOfPubl
Source§fn clone(&self) -> ProofOfPubl
fn clone(&self) -> ProofOfPubl
Returns a copy 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 ProofOfPubl
impl CommitEncode for ProofOfPubl
Source§type CommitmentId = MerkleHash
type CommitmentId = MerkleHash
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 ProofOfPubl
impl Debug for ProofOfPubl
Source§impl<'de> Deserialize<'de> for ProofOfPubl
impl<'de> Deserialize<'de> for ProofOfPubl
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
Source§impl Hash for ProofOfPubl
impl Hash for ProofOfPubl
Source§impl Ord for ProofOfPubl
impl Ord for ProofOfPubl
Source§fn cmp(&self, other: &ProofOfPubl) -> Ordering
fn cmp(&self, other: &ProofOfPubl) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ProofOfPubl
impl PartialEq for ProofOfPubl
Source§impl PartialOrd for ProofOfPubl
impl PartialOrd for ProofOfPubl
Source§impl Serialize for ProofOfPubl
impl Serialize for ProofOfPubl
Source§impl StrictDecode for ProofOfPubl
impl StrictDecode for ProofOfPubl
fn strict_decode(reader: &mut impl TypedRead) -> Result<Self, DecodeError>
fn strict_read(reader: impl ReadRaw) -> Result<Self, DecodeError>
Source§impl StrictDumb for ProofOfPubl
impl StrictDumb for ProofOfPubl
fn strict_dumb() -> Self
Source§impl StrictEncode for ProofOfPubl
impl StrictEncode for ProofOfPubl
fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
fn strict_write(&self, writer: impl WriteRaw) -> Result<(), Error>
Source§impl StrictSum for ProofOfPubl
impl StrictSum for ProofOfPubl
const ALL_VARIANTS: &'static [(u8, &'static str)] = _
fn variant_name(&self) -> &'static str
fn strict_check_variants()
fn variant_name_by_tag(tag: u8) -> Option<VariantName>
fn variant_ord(&self) -> u8
Source§impl StrictType for ProofOfPubl
impl StrictType for ProofOfPubl
const STRICT_LIB_NAME: &'static str = LIB_NAME_PRIME
fn strict_name() -> Option<TypeName>
Source§impl StrictUnion for ProofOfPubl
impl StrictUnion for ProofOfPubl
fn strict_type_info() -> TypeInfo<Self>
impl Eq for ProofOfPubl
impl StructuralPartialEq for ProofOfPubl
Auto Trait Implementations§
impl Freeze for ProofOfPubl
impl RefUnwindSafe for ProofOfPubl
impl Send for ProofOfPubl
impl Sync for ProofOfPubl
impl Unpin for ProofOfPubl
impl UnwindSafe for ProofOfPubl
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.