Struct rgbstd::contract::seal::SecretSeal
pub struct SecretSeal(_);Expand description
Blind version of transaction outpoint-based single-use-seal
Trait Implementations§
§impl AsRef<<SecretSeal as Wrapper>::Inner> for SecretSeal
impl AsRef<<SecretSeal as Wrapper>::Inner> for SecretSeal
§fn as_ref(&self) -> &<SecretSeal as Wrapper>::Inner
fn as_ref(&self) -> &<SecretSeal as Wrapper>::Inner
Converts this type into a shared reference of the (usually inferred) input type.
§impl Borrow<<SecretSeal as Wrapper>::Inner> for SecretSeal
impl Borrow<<SecretSeal as Wrapper>::Inner> for SecretSeal
§impl Borrow<[u8]> for SecretSeal
impl Borrow<[u8]> for SecretSeal
§impl Clone for SecretSeal
impl Clone for SecretSeal
§fn clone(&self) -> SecretSeal
fn clone(&self) -> SecretSeal
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 more§impl CommitStrategy for SecretSeal
impl CommitStrategy for SecretSeal
§impl<Id> CommitVerify<BlindSeal<Id>, Lnpbp12> for SecretSealwhere
Id: SealTxid,
impl<Id> CommitVerify<BlindSeal<Id>, Lnpbp12> for SecretSealwhere Id: SealTxid,
§impl Debug for SecretSeal
impl Debug for SecretSeal
§impl<'de> Deserialize<'de> for SecretSeal
impl<'de> Deserialize<'de> for SecretSeal
§fn deserialize<__D>(
__deserializer: __D
) -> Result<SecretSeal, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<SecretSeal, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Display for SecretSeal
impl Display for SecretSeal
§impl From<[u8; 32]> for SecretSeal
impl From<[u8; 32]> for SecretSeal
§fn from(v: [u8; 32]) -> SecretSeal
fn from(v: [u8; 32]) -> SecretSeal
Converts to this type from the input type.
§impl From<Array<u8, 32>> for SecretSeal
impl From<Array<u8, 32>> for SecretSeal
§fn from(v: Array<u8, 32>) -> SecretSeal
fn from(v: Array<u8, 32>) -> SecretSeal
Converts to this type from the input type.
§impl From<Outpoint> for SecretSeal
impl From<Outpoint> for SecretSeal
§fn from(outpoint: Outpoint) -> SecretSeal
fn from(outpoint: Outpoint) -> SecretSeal
Converts to this type from the input type.
source§impl<Seal: ExposedSeal> From<SecretSeal> for BuilderSeal<Seal>
impl<Seal: ExposedSeal> From<SecretSeal> for BuilderSeal<Seal>
source§fn from(v: SecretSeal) -> Self
fn from(v: SecretSeal) -> Self
Converts to this type from the input type.
source§impl From<SecretSeal> for TerminalSeal
impl From<SecretSeal> for TerminalSeal
source§fn from(v: SecretSeal) -> Self
fn from(v: SecretSeal) -> Self
Converts to this type from the input type.
§impl FromBaid58<32> for SecretSeal
impl FromBaid58<32> for SecretSeal
source§fn from_baid58_str(s: &str) -> Result<Self, Baid58ParseError>
fn from_baid58_str(s: &str) -> Result<Self, Baid58ParseError>
Format of the string Read more
fn from_baid58(baid: Baid58<LEN>) -> Result<Self, Baid58HriError>
§impl FromHex for SecretSeal
impl FromHex for SecretSeal
§fn from_byte_iter<I>(iter: I) -> Result<SecretSeal, Error>where
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
fn from_byte_iter<I>(iter: I) -> Result<SecretSeal, Error>where I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
Produce an object from a byte iterator
§impl FromStr for SecretSeal
impl FromStr for SecretSeal
§type Err = Baid58ParseError
type Err = Baid58ParseError
The associated error which can be returned from parsing.
§fn from_str(s: &str) -> Result<SecretSeal, <SecretSeal as FromStr>::Err>
fn from_str(s: &str) -> Result<SecretSeal, <SecretSeal as FromStr>::Err>
Parses a string
s to return a value of this type. Read more§impl Hash for SecretSeal
impl Hash for SecretSeal
§impl Index<Range<usize>> for SecretSeal
impl Index<Range<usize>> for SecretSeal
§impl Index<RangeFrom<usize>> for SecretSeal
impl Index<RangeFrom<usize>> for SecretSeal
§impl Index<RangeFull> for SecretSeal
impl Index<RangeFull> for SecretSeal
§impl Index<RangeInclusive<usize>> for SecretSeal
impl Index<RangeInclusive<usize>> for SecretSeal
§type Output = <<SecretSeal as Wrapper>::Inner as Index<RangeInclusive<usize>>>::Output
type Output = <<SecretSeal as Wrapper>::Inner as Index<RangeInclusive<usize>>>::Output
The returned type after indexing.
§fn index(
&self,
index: RangeInclusive<usize>
) -> &<SecretSeal as Index<RangeInclusive<usize>>>::Output
fn index( &self, index: RangeInclusive<usize> ) -> &<SecretSeal as Index<RangeInclusive<usize>>>::Output
Performs the indexing (
container[index]) operation. Read more§impl Index<RangeTo<usize>> for SecretSeal
impl Index<RangeTo<usize>> for SecretSeal
§impl Index<RangeToInclusive<usize>> for SecretSeal
impl Index<RangeToInclusive<usize>> for SecretSeal
§type Output = <<SecretSeal as Wrapper>::Inner as Index<RangeInclusive<usize>>>::Output
type Output = <<SecretSeal as Wrapper>::Inner as Index<RangeInclusive<usize>>>::Output
The returned type after indexing.
§fn index(
&self,
index: RangeToInclusive<usize>
) -> &<SecretSeal as Index<RangeToInclusive<usize>>>::Output
fn index( &self, index: RangeToInclusive<usize> ) -> &<SecretSeal as Index<RangeToInclusive<usize>>>::Output
Performs the indexing (
container[index]) operation. Read more§impl Index<usize> for SecretSeal
impl Index<usize> for SecretSeal
§impl LowerHex for SecretSeal
impl LowerHex for SecretSeal
§impl Ord for SecretSeal
impl Ord for SecretSeal
§impl PartialEq<SecretSeal> for SecretSeal
impl PartialEq<SecretSeal> for SecretSeal
§fn eq(&self, other: &SecretSeal) -> bool
fn eq(&self, other: &SecretSeal) -> bool
This method tests for
self and other values to be equal, and is used
by ==.§impl PartialOrd<SecretSeal> for SecretSeal
impl PartialOrd<SecretSeal> for SecretSeal
§fn partial_cmp(&self, other: &SecretSeal) -> Option<Ordering>
fn partial_cmp(&self, other: &SecretSeal) -> 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 more§impl Serialize for SecretSeal
impl Serialize for SecretSeal
§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
§impl StrictDecode for SecretSeal
impl StrictDecode for SecretSeal
fn strict_decode(reader: &mut impl TypedRead) -> Result<SecretSeal, DecodeError>
§impl StrictDumb for SecretSeal
impl StrictDumb for SecretSeal
fn strict_dumb() -> SecretSeal
§impl StrictEncode for SecretSeal
impl StrictEncode for SecretSeal
fn strict_encode<W>(&self, writer: W) -> Result<W, Error>where W: TypedWrite,
§impl StrictTuple for SecretSeal
impl StrictTuple for SecretSeal
const FIELD_COUNT: u8 = 1u8
fn strict_check_fields()
fn strict_type_info() -> TypeInfo<Self>
§impl StrictType for SecretSeal
impl StrictType for SecretSeal
const STRICT_LIB_NAME: &'static str = dbc::LIB_NAME_BPCORE
fn strict_name() -> Option<TypeName>
§impl ToBaid58<32> for SecretSeal
impl ToBaid58<32> for SecretSeal
§impl UpperHex for SecretSeal
impl UpperHex for SecretSeal
§impl Wrapper for SecretSeal
impl Wrapper for SecretSeal
§fn from_inner(inner: <SecretSeal as Wrapper>::Inner) -> SecretSeal
fn from_inner(inner: <SecretSeal as Wrapper>::Inner) -> SecretSeal
Instantiates wrapper type with the inner data
§fn as_inner(&self) -> &<SecretSeal as Wrapper>::Inner
fn as_inner(&self) -> &<SecretSeal as Wrapper>::Inner
Returns reference to the inner representation for the wrapper type
§fn into_inner(self) -> <SecretSeal as Wrapper>::Inner
fn into_inner(self) -> <SecretSeal as Wrapper>::Inner
Unwraps the wrapper returning the inner type
impl Copy for SecretSeal
impl Eq for SecretSeal
impl StrictProduct for SecretSeal
impl StructuralEq for SecretSeal
impl StructuralPartialEq for SecretSeal
Auto Trait Implementations§
impl RefUnwindSafe for SecretSeal
impl Send for SecretSeal
impl Sync for SecretSeal
impl Unpin for SecretSeal
impl UnwindSafe for SecretSeal
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.