Struct rgb::prelude::Disclosure[][src]

pub struct Disclosure { /* fields omitted */ }

Disclosure purpose is to expose a set of stash data related to number of RGB contracts to some external entity – or store them outside of the stash to be merged lately upon a certain event (for instance, withness transaction being mined or receiving a signature for the updated channel state from an LN channel counterparty).

MB: We are limited by 16-bit integer size for the number of anchors and extensions to disclose, but this is fine since we can produce multiple disclosures when needed

Implementations

impl Disclosure[src]

pub fn version(&self) -> &u16[src]

pub fn transitions(
    &self
) -> &BTreeMap<AnchorId, (Anchor, BTreeMap<ContractId, Transition>)>
[src]

pub fn extensions(&self) -> &BTreeMap<ContractId, Vec<Extension>>[src]

pub fn comment(&self) -> &Option<String>[src]

pub fn signatures(&self) -> &BTreeMap<PublicKey, Signature>[src]

impl Disclosure[src]

pub fn insert_anchored_transitions(
    &mut self,
    anchor: Anchor,
    transitions: BTreeMap<ContractId, Transition>
)
[src]

pub fn insert_extensions(
    &mut self,
    contract_id: ContractId,
    extensions: Vec<Extension>
)
[src]

pub fn change_comment(&mut self, comment: String) -> bool[src]

pub fn remove_comment(&mut self) -> bool[src]

pub fn sig_hash(&self) -> SigHash[src]

pub fn add_signature(
    &mut self,
    pubkey: PublicKey,
    signature: Signature
) -> Option<Signature>
[src]

pub fn remove_signature(&mut self, pubkey: PublicKey) -> Option<Signature>[src]

pub fn empty_signatures(&mut self) -> usize[src]

Trait Implementations

impl Clone for Disclosure[src]

impl CommitEncode for Disclosure[src]

impl ConcealAnchors for Disclosure[src]

impl ConcealSeals for Disclosure[src]

impl ConcealState for Disclosure[src]

impl ConsensusCommit for Disclosure[src]

type Commitment = DisclosureId

impl Debug for Disclosure[src]

impl Default for Disclosure[src]

impl<'de> Deserialize<'de> for Disclosure[src]

impl Display for Disclosure[src]

impl From<Disclosure> for Bech32[src]

impl FromStr for Disclosure[src]

type Err = Error

The associated error which can be returned from parsing.

impl PartialEq<Disclosure> for Disclosure[src]

impl Serialize for Disclosure[src]

impl StrictDecode for Disclosure[src]

impl StrictEncode for Disclosure[src]

impl StructuralPartialEq for Disclosure[src]

impl TryFrom<Bech32> for Disclosure[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> FromBech32 for T where
    T: TryFrom<Bech32, Error = Error>, 
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToBech32 for T where
    T: Into<Bech32> + Clone
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,