pub struct SecretSeal(/* private fields */);
Expand description
Blind version of transaction outpoint-based single-use-seal
Trait Implementations§
Source§impl Borrow<[u8]> for SecretSeal
impl Borrow<[u8]> for SecretSeal
Source§impl Clone for SecretSeal
impl Clone for SecretSeal
Source§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 moreSource§impl CommitStrategy for SecretSeal
impl CommitStrategy for SecretSeal
Source§impl<Id> CommitVerify<BlindSeal<Id>, Lnpbp12> for SecretSealwhere
Id: SealTxid,
impl<Id> CommitVerify<BlindSeal<Id>, Lnpbp12> for SecretSealwhere
Id: SealTxid,
Source§impl Debug for SecretSeal
impl Debug for SecretSeal
Source§impl<'de> Deserialize<'de> for SecretSeal
impl<'de> Deserialize<'de> for SecretSeal
Source§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
Source§impl Display for SecretSeal
impl Display for SecretSeal
Source§impl From<Outpoint> for SecretSeal
impl From<Outpoint> for SecretSeal
Source§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.
Source§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 check_baid58_chunking(s: &str, prefix_sep: char, suffix_sep: char) -> bool
Source§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
Source§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>
Source§impl FromHex for SecretSeal
impl FromHex for SecretSeal
Source§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
Source§impl FromStr for SecretSeal
impl FromStr for SecretSeal
Source§type Err = Baid58ParseError
type Err = Baid58ParseError
The associated error which can be returned from parsing.
Source§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 moreSource§impl Hash for SecretSeal
impl Hash for SecretSeal
Source§impl Index<RangeFull> for SecretSeal
impl Index<RangeFull> for SecretSeal
Source§impl Index<RangeInclusive<usize>> for SecretSeal
impl Index<RangeInclusive<usize>> for SecretSeal
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>,
) -> &<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 moreSource§impl Index<RangeToInclusive<usize>> for SecretSeal
impl Index<RangeToInclusive<usize>> for SecretSeal
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>,
) -> &<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 moreSource§impl Index<usize> for SecretSeal
impl Index<usize> for SecretSeal
Source§impl LowerHex for SecretSeal
impl LowerHex for SecretSeal
Source§impl Ord for SecretSeal
impl Ord for SecretSeal
Source§fn cmp(&self, other: &SecretSeal) -> Ordering
fn cmp(&self, other: &SecretSeal) -> 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 SecretSeal
impl PartialEq for SecretSeal
Source§impl PartialOrd for SecretSeal
impl PartialOrd for SecretSeal
Source§impl Serialize for SecretSeal
impl Serialize for SecretSeal
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 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>
Source§impl StrictDumb for SecretSeal
impl StrictDumb for SecretSeal
fn strict_dumb() -> SecretSeal
Source§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>
Source§impl StrictTuple for SecretSeal
impl StrictTuple for SecretSeal
const FIELD_COUNT: u8 = 1u8
fn strict_check_fields()
fn strict_type_info() -> TypeInfo<Self>
Source§impl StrictType for SecretSeal
impl StrictType for SecretSeal
const STRICT_LIB_NAME: &'static str = dbc::LIB_NAME_BPCORE
fn strict_name() -> Option<TypeName>
Source§impl ToBaid58<32> for SecretSeal
impl ToBaid58<32> for SecretSeal
Source§impl UpperHex for SecretSeal
impl UpperHex for SecretSeal
Source§impl Wrapper for SecretSeal
impl Wrapper for SecretSeal
Source§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
Source§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
Source§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 StructuralPartialEq for SecretSeal
Auto Trait Implementations§
impl Freeze for SecretSeal
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> 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.