Struct rgb_lib::SecretSeal
pub struct SecretSeal(/* private fields */);
Expand description
Blind version of transaction outpoint-based single-use-seal
Trait Implementations§
§impl AsRef<Array<u8, 32>> for SecretSeal
impl AsRef<Array<u8, 32>> for SecretSeal
§impl Borrow<[u8]> for SecretSeal
impl Borrow<[u8]> for SecretSeal
§impl Borrow<Array<u8, 32>> for SecretSeal
impl Borrow<Array<u8, 32>> 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.
§impl From<SecretSeal> for Array<u8, 32>
impl From<SecretSeal> for Array<u8, 32>
§fn from(wrapped: SecretSeal) -> Array<u8, 32>
fn from(wrapped: SecretSeal) -> Array<u8, 32>
Converts to this type from the input type.
§impl FromBaid58<32> for SecretSeal
impl FromBaid58<32> for SecretSeal
§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 check_baid58_chunking(s: &str, prefix_sep: char, suffix_sep: char) -> bool
§fn from_baid58_chunked_str(
s: &str,
prefix_sep: char,
suffix_sep: char
) -> Result<Self, Baid58ParseError>
fn from_baid58_chunked_str( s: &str, prefix_sep: char, suffix_sep: char ) -> Result<Self, Baid58ParseError>
Safety Read more
§fn from_baid58_maybe_chunked_str(
s: &str,
prefix_sep: char,
suffix_sep: char
) -> Result<Self, Baid58ParseError>
fn from_baid58_maybe_chunked_str( s: &str, prefix_sep: char, suffix_sep: char ) -> Result<Self, Baid58ParseError>
Safety 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>
fn from_byte_iter<I>(iter: I) -> Result<SecretSeal, Error>
Produce an object from a byte iterator
§impl FromStr for SecretSeal
impl FromStr for SecretSeal
§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 = <Array<u8, 32> as Index<RangeInclusive<usize>>>::Output
type Output = <Array<u8, 32> 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 = <Array<u8, 32> as Index<RangeInclusive<usize>>>::Output
type Output = <Array<u8, 32> 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 for SecretSeal
impl PartialEq 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 for SecretSeal
impl PartialOrd 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>
fn strict_read(lim: usize, reader: impl Read) -> Result<Self, 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,
fn strict_write(&self, lim: usize, writer: impl Write) -> Result<usize, Error>
§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<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> 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 instance§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§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.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.