Struct rgb::prelude::Anchor [−][src]
pub struct Anchor { pub txid: Txid, pub commitment: MultimsgCommitment, pub proof: Proof, }
Fields
txid: Txid
commitment: MultimsgCommitment
proof: Proof
Implementations
impl Anchor
[src]
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]
pub fn conceal_except(&mut self, contract_id: ContractId) -> usize
[src]
Trait Implementations
impl ConcealAnchors for Anchor
[src]
impl ConcealAnchors for Anchor
[src]fn conceal_anchors_except(&mut self, protocols: &Vec<ContractId>) -> usize
[src]
fn conceal_anchors(&mut self) -> usize
[src]
impl ConsensusCommit for Anchor
[src]
impl ConsensusCommit for Anchor
[src]type Commitment = AnchorId
fn consensus_commit(&self) -> Self::Commitment
fn consensus_verify(&self, commitment: &Self::Commitment) -> bool
impl<'de> Deserialize<'de> for Anchor
[src]
impl<'de> Deserialize<'de> for Anchor
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl DumbDefault for Anchor
[src]
impl DumbDefault for Anchor
[src]fn dumb_default() -> Self
[src]
fn dumb_default() -> Self
[src]Returns an object initialized with dumb data
impl IntoRevealed for Anchor
[src]
impl IntoRevealed for Anchor
[src]fn into_revealed(self, other: Self) -> Result<Self, Error>
[src]
impl Ord for Anchor
[src]
impl Ord for Anchor
[src]impl PartialOrd<Anchor> for Anchor
[src]
impl PartialOrd<Anchor> for Anchor
[src]fn partial_cmp(&self, other: &Self) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl StrictDecode for Anchor
[src]
impl StrictDecode for Anchor
[src]impl StrictEncode for Anchor
[src]
impl StrictEncode for Anchor
[src]impl Eq for Anchor
[src]
impl StructuralEq for Anchor
[src]
impl StructuralPartialEq 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> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> FromBech32 for T where
T: TryFrom<Bech32, Error = Error>,
[src]
impl<T> FromBech32 for T where
T: TryFrom<Bech32, Error = Error>,
[src]pub fn from_bech32(Bech32) -> Result<T, Error>
[src]
pub fn from_bech32(Bech32) -> Result<T, Error>
[src]Unwraps Bech32
enum data into a concrete type, if any, or fails with
Error::WrongType
otherwise Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,