[−][src]Struct tari_crypto::ristretto::dalek_range_proof::DalekRangeProofService
A wrapper around the Dalek library implementation of Bulletproof range proofs.
Implementations
impl DalekRangeProofService
[src]
pub fn new(
range: usize,
base: &PedersenCommitmentFactory
) -> Result<DalekRangeProofService, RangeProofError>
[src]
range: usize,
base: &PedersenCommitmentFactory
) -> Result<DalekRangeProofService, RangeProofError>
Create a new RangeProofService. The Dalek library can only generate proofs for ranges between [0; 2^range), where valid range values are 8, 16, 32 and 64.
Trait Implementations
impl RangeProofService for DalekRangeProofService
[src]
type K = RistrettoSecretKey
type P = Vec<u8>
type PK = RistrettoPublicKey
fn construct_proof(
&self,
key: &RistrettoSecretKey,
value: u64
) -> Result<Vec<u8>, RangeProofError>
[src]
&self,
key: &RistrettoSecretKey,
value: u64
) -> Result<Vec<u8>, RangeProofError>
fn verify(&self, proof: &Self::P, commitment: &PedersenCommitment) -> bool
[src]
Auto Trait Implementations
impl RefUnwindSafe for DalekRangeProofService
impl Send for DalekRangeProofService
impl Sync for DalekRangeProofService
impl Unpin for DalekRangeProofService
impl UnwindSafe for DalekRangeProofService
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> Cast<U> for T where
U: FromCast<T>,
U: FromCast<T>,
fn cast(self) -> U
impl<T> From<T> for T
[src]
impl<T> FromBits<T> for T
fn from_bits(t: T) -> T
impl<T> FromCast<T> for T
fn from_cast(t: T) -> T
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> IntoBits<U> for T where
U: FromBits<T>,
U: FromBits<T>,
fn into_bits(self) -> U
impl<T> Same<T> for T
type Output = T
Should always be Self
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.
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.
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>,