#[repr(C)]pub struct ContractBundle {
pub exact_bytes_digest: StrongDigest,
pub context_digest: StrongDigest,
pub ontology_digest: StrongDigest,
pub shape_digest: StrongDigest,
pub rules_digest: StrongDigest,
pub required_vocab_digest: StrongDigest,
pub known_vocab_digest: StrongDigest,
}Expand description
Pinned contract view. Vocabulary membership is stored as digests filled by the verifier from a known-vocab table, not as a caller boolean.
Fields§
§exact_bytes_digest: StrongDigest§context_digest: StrongDigest§ontology_digest: StrongDigest§shape_digest: StrongDigest§rules_digest: StrongDigest§required_vocab_digest: StrongDigestVocabulary the artifact requires. Zero means unknown required semantics.
known_vocab_digest: StrongDigestLocal known-vocabulary table digest bound by the verifier.
Implementations§
Source§impl ContractBundle
impl ContractBundle
Sourcepub const fn exact_bytes_unsigned(&self) -> bool
pub const fn exact_bytes_unsigned(&self) -> bool
ContractBundle::exact_bytes_unsigned.
Sourcepub fn bind_known_vocabulary(&mut self, known_vocab_digest: StrongDigest)
pub fn bind_known_vocabulary(&mut self, known_vocab_digest: StrongDigest)
Bind the local known-vocabulary table. Callers of compile_decision
must not invent a matching pair to mean “signed”.
Sourcepub fn required_vocabulary_known(&self) -> bool
pub fn required_vocabulary_known(&self) -> bool
ContractBundle::required_vocabulary_known.
Trait Implementations§
Source§impl Clone for ContractBundle
impl Clone for ContractBundle
impl Copy for ContractBundle
Source§impl Debug for ContractBundle
impl Debug for ContractBundle
impl Eq for ContractBundle
Source§impl PartialEq for ContractBundle
impl PartialEq for ContractBundle
impl StructuralPartialEq for ContractBundle
Auto Trait Implementations§
impl Freeze for ContractBundle
impl RefUnwindSafe for ContractBundle
impl Send for ContractBundle
impl Sync for ContractBundle
impl Unpin for ContractBundle
impl UnsafeUnpin for ContractBundle
impl UnwindSafe for ContractBundle
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more