Enum rgb::bech32::Bech32 [−][src]
pub enum Bech32 {}Show variants
PedersenCommitment(Commitment), Bulletproof(RangeProof), Curve25519Pk(PublicKey), Ed25519Sign(Signature), BlindedUtxo(Confidential), SchemaId(SchemaId), Schema(Schema), ContractId(ContractId), Genesis(Genesis), Transition(Transition), Extension(Extension), Anchor(Anchor), Disclosure(Disclosure), Other(String, Vec<u8>),
Expand description
Bech32 representation of generic RGB data, that can be generated from some string basing on Bech32 HRP value.
Variants
PedersenCommitment(Commitment)
Expand description
Pedersen commitment
HRP: pedersen
Bulletproof(RangeProof)
Expand description
Bulletproofs
HRP: bulletproof
Curve25519Pk(PublicKey)
Expand description
Curve25519 public key
HRP: curve25519pk
Ed25519Sign(Signature)
Expand description
Ed25519 signature
HRP: ed25519sign
BlindedUtxo(Confidential)
Expand description
Blinded UTXO for assigning RGB state to.
HRP: utxob
SchemaId(SchemaId)
Expand description
RGB Schema ID (hash of the schema data).
HRP: sch
Schema(Schema)
Expand description
RGB Schema raw data (hash of the genesis).
HRP: schema
ContractId(ContractId)
Expand description
RGB Contract ID (hash of the genesis).
HRP: rgb
Genesis(Genesis)
Expand description
RGB Contract genesis raw data
HRP: genesis
Transition(Transition)
Expand description
Raw data of state transition under some RGB contract
HRP: transition
Extension(Extension)
Expand description
Raw data of state extension under some RGB contract
HRP: statex
Anchor(Anchor)
Expand description
Anchor data for some dterministic bitcoin commitment
HRP: anchor
Disclosure(Disclosure)
Expand description
Disclosure data revealing some specific confidential information about RGB contract
HRP: disclosure
Expand description
Binary data for unknown Bech32 HRPs
Implementations
impl Bech32
[src]
impl Bech32
[src]pub const HRP_PEDERSEN: &'static str
[src]
pub const HRP_PEDERSEN: &'static str
[src]HRP for a Bech32-encoded Pedersen commitment
pub const HRP_BULLETPROOF: &'static str
[src]
pub const HRP_BULLETPROOF: &'static str
[src]HRP for a Bech32-encoded blinded bulletproof range proof data
pub const HRP_CURVE25519OPK: &'static str
[src]
pub const HRP_CURVE25519OPK: &'static str
[src]HRP for a Bech32-encoded blinded bulletproof range proof data
pub const HRP_ED25519OSIGN: &'static str
[src]
pub const HRP_ED25519OSIGN: &'static str
[src]HRP for a Bech32-encoded blinded bulletproof range proof data
pub const HRP_OUTPOINT: &'static str
[src]
pub const HRP_OUTPOINT: &'static str
[src]HRP for a Bech32-encoded blinded UTXO data
pub const HRP_SCHEMA_ID: &'static str
[src]
pub const HRP_SCHEMA_ID: &'static str
[src]Bech32 HRP for RGB schema ID encoding
pub const HRP_CONTRACT_ID: &'static str
[src]
pub const HRP_CONTRACT_ID: &'static str
[src]Bech32 HRP for RGB contract ID encoding
pub const HRP_SCHEMA: &'static str
[src]
pub const HRP_SCHEMA: &'static str
[src]HRP for a Bech32-encoded raw RGB schema data
pub const HRP_GENESIS: &'static str
[src]
pub const HRP_GENESIS: &'static str
[src]HRP for a Bech32-encoded raw RGB contract genesis data
pub const HRP_TRANSITION: &'static str
[src]
pub const HRP_TRANSITION: &'static str
[src]HRP for a Bech32-encoded raw RGB state transition data
pub const HRP_EXTENSION: &'static str
[src]
pub const HRP_EXTENSION: &'static str
[src]HRP for a Bech32-encoded raw RGB state extension data
pub const HRP_ANCHOR: &'static str
[src]
pub const HRP_ANCHOR: &'static str
[src]HRP for a Bech32-encoded deterministic bitcoin commitments anchor data
pub const HRP_DISCLOSURE: &'static str
[src]
pub const HRP_DISCLOSURE: &'static str
[src]HRP for a Bech32-encoded RGB disclosure data
Trait Implementations
impl<'de> Deserialize<'de> for Bech32
[src]
impl<'de> Deserialize<'de> for Bech32
[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 From<Commitment> for Bech32
[src]
impl From<Commitment> for Bech32
[src]fn from(v: Commitment) -> Self
[src]
fn from(v: Commitment) -> Self
[src]Performs the conversion.
impl From<ContractId> for Bech32
[src]
impl From<ContractId> for Bech32
[src]fn from(v: ContractId) -> Self
[src]
fn from(v: ContractId) -> Self
[src]Performs the conversion.
impl From<Disclosure> for Bech32
[src]
impl From<Disclosure> for Bech32
[src]fn from(v: Disclosure) -> Self
[src]
fn from(v: Disclosure) -> Self
[src]Performs the conversion.
impl From<OutpointHash> for Bech32
[src]
impl From<OutpointHash> for Bech32
[src]fn from(v: Confidential) -> Self
[src]
fn from(v: Confidential) -> Self
[src]Performs the conversion.
impl From<RangeProof> for Bech32
[src]
impl From<RangeProof> for Bech32
[src]fn from(v: RangeProof) -> Self
[src]
fn from(v: RangeProof) -> Self
[src]Performs the conversion.
impl From<Transition> for Bech32
[src]
impl From<Transition> for Bech32
[src]fn from(v: Transition) -> Self
[src]
fn from(v: Transition) -> Self
[src]Performs the conversion.
impl TryFrom<Bech32> for Commitment
[src]
impl TryFrom<Bech32> for Commitment
[src]impl TryFrom<Bech32> for RangeProof
[src]
impl TryFrom<Bech32> for RangeProof
[src]impl TryFrom<Bech32> for Disclosure
[src]
impl TryFrom<Bech32> for Disclosure
[src]impl TryFrom<Bech32> for Confidential
[src]
impl TryFrom<Bech32> for Confidential
[src]impl TryFrom<Bech32> for ContractId
[src]
impl TryFrom<Bech32> for ContractId
[src]impl TryFrom<Bech32> for Transition
[src]
impl TryFrom<Bech32> for Transition
[src]Auto Trait Implementations
impl RefUnwindSafe for Bech32
impl Send for Bech32
impl Sync for Bech32
impl Unpin for Bech32
impl UnwindSafe for Bech32
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> 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>,