[][src]Struct secp256k1zkp::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[src]

pub fn zero() -> RangeProof[src]

Create the zero range proof

pub fn bytes(&self) -> &[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 Copy for RangeProof[src]

impl Debug for RangeProof[src]

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

impl PartialEq<RangeProof> for RangeProof[src]

impl Serialize for RangeProof[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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.