pub enum TerminalSeal {
ConcealedUtxo(SecretSeal),
WitnessVout(VoutSeal),
}
Expand description
Seal endpoint is a confidential seal which may be linked to the witness transaction, but does not contain information about its id.
Seal endpoint can be either a pointer to the output in the witness
transaction, plus blinding factor value, or a confidential seal
SecretSeal
value pointing some external unknown transaction
output
Seal endpoint is required in situations where sender assigns state to the witness transaction output on behalf of receiver
Variants§
ConcealedUtxo(SecretSeal)
External transaction output in concealed form (see SecretSeal
)
WitnessVout(VoutSeal)
Seal contained within the witness transaction
Implementations§
Source§impl TerminalSeal
impl TerminalSeal
Sourcepub fn new_vout(method: CloseMethod, vout: impl Into<Vout>) -> TerminalSeal
pub fn new_vout(method: CloseMethod, vout: impl Into<Vout>) -> TerminalSeal
Constructs TerminalSeal
for the witness transaction. Uses
thread_rng
to initialize blinding factor.
pub fn secret_seal(&self) -> Option<SecretSeal>
Trait Implementations§
Source§impl Clone for TerminalSeal
impl Clone for TerminalSeal
Source§fn clone(&self) -> TerminalSeal
fn clone(&self) -> TerminalSeal
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 Conceal for TerminalSeal
impl Conceal for TerminalSeal
Source§impl Debug for TerminalSeal
impl Debug for TerminalSeal
Source§impl<'de> Deserialize<'de> for TerminalSeal
impl<'de> Deserialize<'de> for TerminalSeal
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for TerminalSeal
impl Display for TerminalSeal
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 FromStr for TerminalSeal
impl FromStr for TerminalSeal
Source§impl Hash for TerminalSeal
impl Hash for TerminalSeal
Source§impl Ord for TerminalSeal
impl Ord for TerminalSeal
Source§fn cmp(&self, other: &TerminalSeal) -> Ordering
fn cmp(&self, other: &TerminalSeal) -> 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 TerminalSeal
impl PartialEq for TerminalSeal
Source§impl PartialOrd for TerminalSeal
impl PartialOrd for TerminalSeal
Source§impl Serialize for TerminalSeal
impl Serialize for TerminalSeal
Source§impl StrictDecode for TerminalSeal
impl StrictDecode for TerminalSeal
fn strict_decode(reader: &mut impl TypedRead) -> Result<Self, DecodeError>
fn strict_read(lim: usize, reader: impl Read) -> Result<Self, DecodeError>
Source§impl StrictDumb for TerminalSeal
impl StrictDumb for TerminalSeal
fn strict_dumb() -> Self
Source§impl StrictEncode for TerminalSeal
impl StrictEncode for TerminalSeal
fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
fn strict_write(&self, lim: usize, writer: impl Write) -> Result<usize, Error>
Source§impl StrictSum for TerminalSeal
impl StrictSum for TerminalSeal
const ALL_VARIANTS: &'static [(u8, &'static str)]
fn variant_name(&self) -> &'static str
fn strict_check_variants()
fn variant_name_by_tag(tag: u8) -> Option<FieldName>
fn variant_ord(&self) -> u8
Source§impl StrictType for TerminalSeal
impl StrictType for TerminalSeal
const STRICT_LIB_NAME: &'static str = LIB_NAME_RGB_STD
fn strict_name() -> Option<TypeName>
Source§impl StrictUnion for TerminalSeal
impl StrictUnion for TerminalSeal
fn strict_type_info() -> TypeInfo<Self>
impl Copy for TerminalSeal
impl Eq for TerminalSeal
impl StructuralPartialEq for TerminalSeal
Auto Trait Implementations§
impl Freeze for TerminalSeal
impl RefUnwindSafe for TerminalSeal
impl Send for TerminalSeal
impl Sync for TerminalSeal
impl Unpin for TerminalSeal
impl UnwindSafe for TerminalSeal
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.