pub struct ConcealedData(/* private fields */);
Expand description
Confidential version of an structured state data.
See also revealed version RevealedData
.
Methods from Deref<Target = Array<u8, 32>>§
Sourcepub fn to_vec(&self) -> Vec<T>where
T: Clone,
Available on crate features std
or alloc
only.
pub fn to_vec(&self) -> Vec<T>where
T: Clone,
std
or alloc
only.Returns vector representing internal slice data
Sourcepub fn iter(&self) -> Iter<'_, T>
pub fn iter(&self) -> Iter<'_, T>
Returns an iterator over the array items.
The iterator yields all items from start to end.
Sourcepub fn to_byte_array(&self) -> [u8; LEN]
pub fn to_byte_array(&self) -> [u8; LEN]
Returns a byte array representation stored in the wrapped type.
Trait Implementations§
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>
fn from_byte_iter<I>(iter: I) -> Result<ConcealedData, Error>
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
Source§type Output = <Array<u8, 32> as Index<RangeInclusive<usize>>>::Output
type Output = <Array<u8, 32> 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
Source§type Output = <Array<u8, 32> as Index<RangeInclusive<usize>>>::Output
type Output = <Array<u8, 32> 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 for ConcealedData
impl PartialEq for ConcealedData
Source§impl PartialOrd for ConcealedData
impl PartialOrd for ConcealedData
Source§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 StructuralPartialEq for ConcealedData
Auto Trait Implementations§
impl Freeze for ConcealedData
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<Id, const LEN: usize, const REVERSE_STR: bool> ByteArray<LEN> for Id
impl<Id, const LEN: usize, const REVERSE_STR: bool> ByteArray<LEN> for Id
Source§fn from_byte_array(val: impl Into<[u8; LEN]>) -> Id
fn from_byte_array(val: impl Into<[u8; LEN]>) -> Id
Constructs a wrapper type around a byte array.
Source§fn from_slice(slice: impl AsRef<[u8]>) -> Result<Id, FromSliceError>
fn from_slice(slice: impl AsRef<[u8]>) -> Result<Id, FromSliceError>
Constructs a byte array from the slice. Errors if the slice length
doesn’t match
LEN
constant generic.Source§fn from_slice_unsafe(slice: impl AsRef<[u8]>) -> Id
fn from_slice_unsafe(slice: impl AsRef<[u8]>) -> Id
Constructs a byte array from the slice. Expects the slice length
doesn’t match
LEN
constant generic. Read moreSource§fn to_byte_array(&self) -> [u8; LEN]
fn to_byte_array(&self) -> [u8; LEN]
Returns a byte array representation stored in the wrapped type.
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> CommitEncode for T
impl<T> CommitEncode for T
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> 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.