Struct rgb::prelude::Consignment [−][src]
Fields
genesis: Genesis
endpoints: ConsignmentEndpoints
state_transitions: TransitionData
state_extensions: ExtensionData
Implementations
impl Consignment
[src]
pub fn with(
genesis: Genesis,
endpoints: ConsignmentEndpoints,
state_transitions: TransitionData,
state_extensions: ExtensionData
) -> Consignment
[src]
genesis: Genesis,
endpoints: ConsignmentEndpoints,
state_transitions: TransitionData,
state_extensions: ExtensionData
) -> Consignment
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]
&mut self,
expose: &BTreeSet<SealEndpoint>,
contract_id: ContractId
) -> usize
pub fn reveal_seals<'a>(
&mut self,
known_seals: impl Iterator<Item = &'a OutpointReveal> + Clone
) -> usize
[src]
&mut self,
known_seals: impl Iterator<Item = &'a OutpointReveal> + Clone
) -> usize
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]
fn clone(&self) -> Consignment
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl CommitEncodeWithStrategy for Consignment
[src]
type Strategy = UsingStrict
impl ConsensusCommit for Consignment
[src]
type Commitment = ConsignmentId
pub fn consensus_commit(&self) -> Self::Commitment
pub fn consensus_verify(&self, commitment: &Self::Commitment) -> bool
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.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
impl PartialEq<Consignment> for Consignment
[src]
fn eq(&self, other: &Consignment) -> bool
[src]
fn ne(&self, other: &Consignment) -> bool
[src]
impl Strategy for Consignment
[src]
const HRP: &'static str
[src]
type Strategy = CompressedStrictEncoding
impl Strategy for Consignment
[src]
impl StrictDecode for Consignment
[src]
fn strict_decode<D: Read>(d: D) -> Result<Self, Error>
[src]
pub fn strict_deserialize(data: impl AsRef<[u8]>) -> Result<Self, Error>
[src]
impl StrictEncode for Consignment
[src]
fn strict_encode<E: Write>(&self, e: E) -> Result<usize, Error>
[src]
pub fn strict_serialize(&self) -> Result<Vec<u8, Global>, Error>
[src]
impl StructuralEq for Consignment
[src]
impl StructuralPartialEq for Consignment
[src]
Auto Trait Implementations
impl RefUnwindSafe for Consignment
impl Send for Consignment
impl Sync for Consignment
impl Unpin for Consignment
impl UnwindSafe for Consignment
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, 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> 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>,