Struct rgb::prelude::Consignment[][src]

pub struct Consignment {
    pub genesis: Genesis,
    pub endpoints: ConsignmentEndpoints,
    pub state_transitions: TransitionData,
    pub state_extensions: ExtensionData,
    // some fields omitted
}

Fields

genesis: Genesisendpoints: ConsignmentEndpointsstate_transitions: TransitionDatastate_extensions: ExtensionData

Implementations

impl Consignment[src]

pub fn with(
    genesis: Genesis,
    endpoints: ConsignmentEndpoints,
    state_transitions: TransitionData,
    state_extensions: ExtensionData
) -> Consignment
[src]

pub fn id(&self) -> ConsignmentId[src]

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

pub fn txids(&self) -> BTreeSet<Txid>[src]

pub fn node_ids(&self) -> BTreeSet<NodeId>[src]

pub fn validate<R: TxResolver>(&self, schema: &Schema, resolver: R) -> Status[src]

pub fn finalize(
    &mut self,
    expose: &BTreeSet<SealEndpoint>,
    contract_id: ContractId
) -> usize
[src]

pub fn reveal_seals<'a>(
    &mut self,
    known_seals: impl Iterator<Item = &'a OutpointReveal> + Clone
) -> usize
[src]

Reveals previously known seal information (replacing blind UTXOs with unblind ones). Function is used when a peer receives consignment containing concealed seals for the outputs owned by the peer

Trait Implementations

impl Clone for Consignment[src]

impl CommitEncodeWithStrategy for Consignment[src]

type Strategy = UsingStrict

impl ConsensusCommit for Consignment[src]

type Commitment = ConsignmentId

impl Debug for Consignment[src]

impl Display for Consignment[src]

impl Eq for Consignment[src]

impl FromStr for Consignment[src]

type Err = Error

The associated error which can be returned from parsing.

impl PartialEq<Consignment> for Consignment[src]

impl Strategy for Consignment[src]

impl Strategy for Consignment[src]

impl StrictDecode for Consignment[src]

impl StrictEncode for Consignment[src]

impl StructuralEq for Consignment[src]

impl StructuralPartialEq for Consignment[src]

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> From<T> for T[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> 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>,