Struct rgbstd::contract::ConcealedData
source · pub struct ConcealedData(_);
Expand description
Confidential version of an structured state data.
See also revealed version RevealedData
.
Trait Implementations§
source§impl AsRef<<ConcealedData as Wrapper>::Inner> for ConcealedData
impl AsRef<<ConcealedData as Wrapper>::Inner> for ConcealedData
source§impl Borrow<<ConcealedData as Wrapper>::Inner> for ConcealedData
impl Borrow<<ConcealedData as Wrapper>::Inner> for ConcealedData
source§impl Borrow<[u8]> for ConcealedData
impl Borrow<[u8]> for ConcealedData
source§impl Clone for ConcealedData
impl Clone for ConcealedData
source§fn clone(&self) -> ConcealedData
fn clone(&self) -> ConcealedData
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 CommitStrategy for ConcealedData
impl CommitStrategy for ConcealedData
source§impl CommitVerify<RevealedData, StrictEncodedProtocol> for ConcealedData
impl CommitVerify<RevealedData, StrictEncodedProtocol> for ConcealedData
source§fn commit(revealed: &RevealedData) -> ConcealedData
fn commit(revealed: &RevealedData) -> ConcealedData
Creates a commitment to a byte representation of a given message
source§impl ConfidentialState for ConcealedData
impl ConfidentialState for ConcealedData
fn state_type(&self) -> StateType
fn state_commitment(&self) -> StateCommitment
source§impl Debug for ConcealedData
impl Debug for ConcealedData
source§impl Deref for ConcealedData
impl Deref for ConcealedData
source§impl<'de> Deserialize<'de> for ConcealedData
impl<'de> Deserialize<'de> for ConcealedData
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<ConcealedData, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<ConcealedData, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl FromHex for ConcealedData
impl FromHex for ConcealedData
source§fn from_byte_iter<I>(iter: I) -> Result<ConcealedData, Error>where
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
fn from_byte_iter<I>(iter: I) -> Result<ConcealedData, Error>where I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
Produce an object from a byte iterator
source§impl Hash for ConcealedData
impl Hash for ConcealedData
source§impl Index<RangeFull> for ConcealedData
impl Index<RangeFull> for ConcealedData
source§impl Index<RangeInclusive<usize>> for ConcealedData
impl Index<RangeInclusive<usize>> for ConcealedData
§type Output = <<ConcealedData as Wrapper>::Inner as Index<RangeInclusive<usize>>>::Output
type Output = <<ConcealedData as Wrapper>::Inner as Index<RangeInclusive<usize>>>::Output
The returned type after indexing.
source§fn index(
&self,
index: RangeInclusive<usize>
) -> &<ConcealedData as Index<RangeInclusive<usize>>>::Output
fn index( &self, index: RangeInclusive<usize> ) -> &<ConcealedData as Index<RangeInclusive<usize>>>::Output
Performs the indexing (
container[index]
) operation. Read moresource§impl Index<RangeToInclusive<usize>> for ConcealedData
impl Index<RangeToInclusive<usize>> for ConcealedData
§type Output = <<ConcealedData as Wrapper>::Inner as Index<RangeInclusive<usize>>>::Output
type Output = <<ConcealedData as Wrapper>::Inner as Index<RangeInclusive<usize>>>::Output
The returned type after indexing.
source§fn index(
&self,
index: RangeToInclusive<usize>
) -> &<ConcealedData as Index<RangeToInclusive<usize>>>::Output
fn index( &self, index: RangeToInclusive<usize> ) -> &<ConcealedData as Index<RangeToInclusive<usize>>>::Output
Performs the indexing (
container[index]
) operation. Read moresource§impl Index<usize> for ConcealedData
impl Index<usize> for ConcealedData
source§impl LowerHex for ConcealedData
impl LowerHex for ConcealedData
source§impl Ord for ConcealedData
impl Ord for ConcealedData
source§fn cmp(&self, other: &ConcealedData) -> Ordering
fn cmp(&self, other: &ConcealedData) -> 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<ConcealedData> for ConcealedData
impl PartialEq<ConcealedData> for ConcealedData
source§fn eq(&self, other: &ConcealedData) -> bool
fn eq(&self, other: &ConcealedData) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ConcealedData> for ConcealedData
impl PartialOrd<ConcealedData> for ConcealedData
source§fn partial_cmp(&self, other: &ConcealedData) -> Option<Ordering>
fn partial_cmp(&self, other: &ConcealedData) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for ConcealedData
impl Serialize for ConcealedData
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
source§impl StrictDecode for ConcealedData
impl StrictDecode for ConcealedData
fn strict_decode( reader: &mut impl TypedRead ) -> Result<ConcealedData, DecodeError>
fn strict_read(lim: usize, reader: impl Read) -> Result<Self, DecodeError>
source§impl StrictDumb for ConcealedData
impl StrictDumb for ConcealedData
fn strict_dumb() -> ConcealedData
source§impl StrictEncode for ConcealedData
impl StrictEncode for ConcealedData
fn strict_encode<W>(&self, writer: W) -> Result<W, Error>where W: TypedWrite,
fn strict_write(&self, lim: usize, writer: impl Write) -> Result<usize, Error>
source§impl StrictTuple for ConcealedData
impl StrictTuple for ConcealedData
const FIELD_COUNT: u8 = 1u8
fn strict_check_fields()
fn strict_type_info() -> TypeInfo<Self>
source§impl StrictType for ConcealedData
impl StrictType for ConcealedData
const STRICT_LIB_NAME: &'static str = LIB_NAME_RGB
fn strict_name() -> Option<TypeName>
source§impl UpperHex for ConcealedData
impl UpperHex for ConcealedData
source§impl Wrapper for ConcealedData
impl Wrapper for ConcealedData
source§fn from_inner(inner: <ConcealedData as Wrapper>::Inner) -> ConcealedData
fn from_inner(inner: <ConcealedData as Wrapper>::Inner) -> ConcealedData
Instantiates wrapper type with the inner data
source§fn as_inner(&self) -> &<ConcealedData as Wrapper>::Inner
fn as_inner(&self) -> &<ConcealedData as Wrapper>::Inner
Returns reference to the inner representation for the wrapper type
source§fn into_inner(self) -> <ConcealedData as Wrapper>::Inner
fn into_inner(self) -> <ConcealedData as Wrapper>::Inner
Unwraps the wrapper returning the inner type
impl Copy for ConcealedData
impl Eq for ConcealedData
impl StrictProduct for ConcealedData
impl StructuralEq for ConcealedData
impl StructuralPartialEq for ConcealedData
Auto Trait Implementations§
impl RefUnwindSafe for ConcealedData
impl Send for ConcealedData
impl Sync for ConcealedData
impl Unpin for ConcealedData
impl UnwindSafe for ConcealedData
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> CommitEncode for Twhere
T: CommitStrategy,
Holder<&'a T, <T as CommitStrategy>::Strategy>: for<'a> CommitEncode,
impl<T> CommitEncode for Twhere T: CommitStrategy, Holder<&'a T, <T as CommitStrategy>::Strategy>: for<'a> CommitEncode,
source§fn commit_encode(&self, e: &mut impl Write)
fn commit_encode(&self, e: &mut impl Write)
Encodes the data for the commitment by writing them directly into a
io::Write
writer instancesource§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.