[−][src]Struct lnpbp::rgb::stash::Anchor
Fields
txid: Txid
commitment: MultimsgCommitment
proof: Proof
Implementations
impl Anchor
[src]
pub fn commit(
transitions: BTreeMap<ContractId, NodeId>,
psbt: &mut Psbt
) -> Result<(Vec<Self>, HashMap<ContractId, usize>), Error>
[src]
transitions: BTreeMap<ContractId, NodeId>,
psbt: &mut Psbt
) -> Result<(Vec<Self>, HashMap<ContractId, usize>), Error>
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]
&self,
contract_id: &ContractId,
tx: &Transaction,
fee: u64
) -> bool
pub fn anchor_id(&self) -> AnchorId
[src]
Trait Implementations
impl Clone for Anchor
[src]
impl CommitEncodeWithStrategy for Anchor
[src]
type Strategy = UsingStrict
impl ConsensusCommit for Anchor
[src]
type Commitment = AnchorId
fn consensus_commit(self) -> Self::Commitment
[src]
fn consensus_verify(self, commitment: &Self::Commitment) -> bool
[src]
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.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
impl PartialEq<Anchor> for Anchor
[src]
impl StrictDecode for Anchor
[src]
type Error = Error
Implementation-dependent error type
fn strict_decode<D: Read>(d: D) -> Result<Self, Self::Error>
[src]
impl StrictEncode for Anchor
[src]
type Error = Error
Implementation-dependent error type
fn strict_encode<E: Write>(&self, e: E) -> Result<usize, Self::Error>
[src]
impl StructuralEq for Anchor
[src]
impl StructuralPartialEq for Anchor
[src]
impl TryFrom<Bech32> for Anchor
[src]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> FromBech32 for T where
T: TryFrom<Bech32, Error = Error>,
[src]
T: TryFrom<Bech32, Error = Error>,
pub fn from_bech32(Bech32) -> Result<T, Error>
[src]
fn from_bech32_str(s: &str) -> Result<Self, Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToBech32 for T where
T: Into<Bech32> + Clone,
[src]
T: Into<Bech32> + Clone,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,