Struct rgb::contract::value::pedersen::RangeProof[][src]

pub struct RangeProof {
    pub proof: [u8; 5134],
    pub plen: usize,
}

A range proof. Typically much larger in memory that the above (~5k).

Fields

proof: [u8; 5134]

The proof itself, at most 5134 bytes long

plen: usize

The length of the proof

Implementations

impl RangeProof[src]

pub fn zero() -> RangeProof[src]

Create the zero range proof

pub fn bytes(&self) -> &[u8]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

The range proof as a byte slice.

pub fn len(&self) -> usize[src]

Length of the range proof in bytes.

Trait Implementations

impl AsRef<[u8]> for RangeProof[src]

impl Clone for RangeProof[src]

impl CommitEncodeWithStrategy for RangeProof

type Strategy = UsingHash<Hash>

impl Copy for RangeProof[src]

impl Debug for RangeProof[src]

impl<'de> Deserialize<'de> for RangeProof[src]

impl From<RangeProof> for Bech32[src]

impl PartialEq<RangeProof> for RangeProof[src]

impl Serialize for RangeProof[src]

impl StrictDecode for RangeProof[src]

impl StrictEncode for RangeProof[src]

impl TryFrom<Bech32> for RangeProof[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> AsBech32Payload for T where
    T: AsRef<[u8]>, 
[src]

impl<T> Base32Len for T where
    T: AsRef<[u8]>, 
[src]

impl<T> Bech32DataString for T where
    T: AsPayload, 
[src]

impl<T> Bech32ZipString for T where
    T: AsPayload, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<'f, T> CheckBase32<Vec<u5, Global>> for T where
    T: AsRef<[u8]>, 
[src]

type Err = Error

Error type if conversion fails

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> FromBech32 for T where
    T: TryFrom<Bech32, Error = Error>, 
[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> ToBase32 for T where
    T: AsRef<[u8]>, 
[src]

impl<T> ToBech32 for T where
    T: Into<Bech32> + Clone
[src]

impl<T> ToHex for T where
    T: AsRef<[u8]>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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>,