[][src]Struct lnpbp::rgb::stash::Anchor

pub struct Anchor {
    pub txid: Txid,
    pub commitment: MultimsgCommitment,
    pub proof: Proof,
}

Fields

txid: Txidcommitment: MultimsgCommitmentproof: Proof

Implementations

impl Anchor[src]

pub fn commit(
    transitions: BTreeMap<ContractId, NodeId>,
    psbt: &mut Psbt
) -> Result<(Vec<Self>, HashMap<ContractId, usize>), Error>
[src]

pub fn validate(&self, contract_id: &ContractId, node_id: &NodeId) -> bool[src]

pub fn verify(
    &self,
    contract_id: &ContractId,
    tx: &Transaction,
    fee: u64
) -> bool
[src]

pub fn anchor_id(&self) -> AnchorId[src]

Trait Implementations

impl Clone for Anchor[src]

impl CommitEncodeWithStrategy for Anchor[src]

impl ConsensusCommit for Anchor[src]

type Commitment = AnchorId

impl Debug for Anchor[src]

impl Display for Anchor[src]

impl Eq for Anchor[src]

impl From<Anchor> for Bech32[src]

impl FromStr for Anchor[src]

type Err = Error

The associated error which can be returned from parsing.

impl PartialEq<Anchor> for Anchor[src]

impl StrictDecode for Anchor[src]

type Error = Error

Implementation-dependent error type

impl StrictEncode for Anchor[src]

type Error = Error

Implementation-dependent error type

impl StructuralEq for Anchor[src]

impl StructuralPartialEq for Anchor[src]

impl TryFrom<Bech32> for Anchor[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for Anchor

impl Send for Anchor

impl Sync for Anchor

impl Unpin for Anchor

impl UnwindSafe for Anchor

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> 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>,