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

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

pub fn zero() -> RangeProof

Create the zero range proof

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

The range proof as a byte slice.

pub fn len(&self) -> usize

Length of the range proof in bytes.

Trait Implementations

impl AsRef<[u8]> for RangeProof

impl Clone for RangeProof

impl CommitEncodeWithStrategy for RangeProof[src]

impl Copy for RangeProof

impl Debug for RangeProof

impl<'de> Deserialize<'de> for RangeProof

impl From<RangeProof> for Bech32[src]

impl PartialEq<RangeProof> for RangeProof

impl Serialize for RangeProof

impl StrictDecode for RangeProof[src]

type Error = Error

Implementation-dependent error type

impl StrictEncode for RangeProof[src]

type Error = Error

Implementation-dependent error type

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> Base32Len for T where
    T: AsRef<[u8]>, 
[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>> 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>,