pub struct RevealedData(/* private fields */);
Trait Implementations§
Source§impl AsRef<Confined<Vec<u8>, amplify::::collection::confinement::SmallVec::{constant#0}, amplify::::collection::confinement::SmallVec::{constant#1}>> for RevealedData
impl AsRef<Confined<Vec<u8>, amplify::::collection::confinement::SmallVec::{constant#0}, amplify::::collection::confinement::SmallVec::{constant#1}>> for RevealedData
Source§impl Borrow<Confined<Vec<u8>, amplify::::collection::confinement::SmallVec::{constant#0}, amplify::::collection::confinement::SmallVec::{constant#1}>> for RevealedData
impl Borrow<Confined<Vec<u8>, amplify::::collection::confinement::SmallVec::{constant#0}, amplify::::collection::confinement::SmallVec::{constant#1}>> for RevealedData
Source§impl Clone for RevealedData
impl Clone for RevealedData
Source§fn clone(&self) -> RevealedData
fn clone(&self) -> RevealedData
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 RevealedData
impl CommitEncode for RevealedData
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 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 Conceal for RevealedData
impl Conceal for RevealedData
Source§type Concealed = ConcealedData
type Concealed = ConcealedData
The resulting confidential type concealing original data.
Source§impl Debug for RevealedData
impl Debug for RevealedData
Source§impl<'de> Deserialize<'de> for RevealedData
impl<'de> Deserialize<'de> for RevealedData
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RevealedData, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RevealedData, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for RevealedData
impl Display for RevealedData
Source§impl ExposedState for RevealedData
impl ExposedState for RevealedData
type Confidential = ConcealedData
fn state_type(&self) -> StateType
fn state_data(&self) -> StateData
Source§impl From<Confined<Vec<u8>, amplify::::collection::confinement::SmallVec::{constant#0}, amplify::::collection::confinement::SmallVec::{constant#1}>> for RevealedData
impl From<Confined<Vec<u8>, amplify::::collection::confinement::SmallVec::{constant#0}, amplify::::collection::confinement::SmallVec::{constant#1}>> for RevealedData
Source§impl From<RevealedData> for Confined<Vec<u8>, amplify::::collection::confinement::SmallVec::{constant#0}, amplify::::collection::confinement::SmallVec::{constant#1}>
impl From<RevealedData> for Confined<Vec<u8>, amplify::::collection::confinement::SmallVec::{constant#0}, amplify::::collection::confinement::SmallVec::{constant#1}>
Source§impl From<RevealedData> for TypedState
impl From<RevealedData> for TypedState
Source§fn from(v: RevealedData) -> Self
fn from(v: RevealedData) -> Self
Converts to this type from the input type.
Source§impl Hash for RevealedData
impl Hash for RevealedData
Source§impl Ord for RevealedData
impl Ord for RevealedData
Source§fn cmp(&self, other: &RevealedData) -> Ordering
fn cmp(&self, other: &RevealedData) -> 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 RevealedData
impl PartialEq for RevealedData
Source§impl PartialOrd for RevealedData
impl PartialOrd for RevealedData
Source§impl Serialize for RevealedData
impl Serialize for RevealedData
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 RevealedData
impl StrictDecode for RevealedData
fn strict_decode( reader: &mut impl TypedRead, ) -> Result<RevealedData, DecodeError>
fn strict_read(lim: usize, reader: impl Read) -> Result<Self, DecodeError>
Source§impl StrictDumb for RevealedData
impl StrictDumb for RevealedData
fn strict_dumb() -> RevealedData
Source§impl StrictEncode for RevealedData
impl StrictEncode for RevealedData
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 StrictSerialize for RevealedData
impl StrictSerialize for RevealedData
fn strict_serialized_len(&self) -> Result<usize, Error>
fn to_strict_serialized<const MAX: usize>( &self, ) -> Result<Confined<Vec<u8>, 0, MAX>, SerializeError>
fn strict_serialize_to_file<const MAX: usize>( &self, path: impl AsRef<Path>, ) -> Result<(), SerializeError>
Source§impl StrictTuple for RevealedData
impl StrictTuple for RevealedData
const FIELD_COUNT: u8 = 1u8
fn strict_check_fields()
fn strict_type_info() -> TypeInfo<Self>
Source§impl StrictType for RevealedData
impl StrictType for RevealedData
const STRICT_LIB_NAME: &'static str = LIB_NAME_RGB
fn strict_name() -> Option<TypeName>
Source§impl Wrapper for RevealedData
impl Wrapper for RevealedData
Source§type Inner = Confined<Vec<u8>, amplify::::collection::confinement::SmallVec::{constant#0}, amplify::::collection::confinement::SmallVec::{constant#1}>
type Inner = Confined<Vec<u8>, amplify::::collection::confinement::SmallVec::{constant#0}, amplify::::collection::confinement::SmallVec::{constant#1}>
Inner type wrapped by the current newtype
Source§fn from_inner(inner: <RevealedData as Wrapper>::Inner) -> RevealedData
fn from_inner(inner: <RevealedData as Wrapper>::Inner) -> RevealedData
Instantiates wrapper type with the inner data
Source§fn as_inner(&self) -> &<RevealedData as Wrapper>::Inner
fn as_inner(&self) -> &<RevealedData as Wrapper>::Inner
Returns reference to the inner representation for the wrapper type
Source§fn into_inner(self) -> <RevealedData as Wrapper>::Inner
fn into_inner(self) -> <RevealedData as Wrapper>::Inner
Unwraps the wrapper returning the inner type
impl Eq for RevealedData
impl StrictProduct for RevealedData
impl StructuralPartialEq for RevealedData
Auto Trait Implementations§
impl Freeze for RevealedData
impl RefUnwindSafe for RevealedData
impl Send for RevealedData
impl Sync for RevealedData
impl Unpin for RevealedData
impl UnwindSafe for RevealedData
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<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.