pub struct HashTranscript<H, R = ()> { /* private fields */ }
Expand description

A transcript which consists of a hash with fixed length output and a seedable RNG.

The SeedableRng specified must have the same seed length as the hash’s output length. R may be set to () but the it won’t implement ProverTranscript.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Implements a prover transcript for a 32-byte hash with a rng that takes a 32-byte seed.

The type of Rng the transcript generates.

Generates an RNG from the transcript state and an input rng (in_rng) which should provide system randomness. Read more

Implements a transcript for any hash that outputs 32 bytes but with a block size of 64 bytes (e.g. SHA256).

The implementation first BIP-340 tags the SHA256 instance with the Sigma protocol’s name.

The name unambigiously determines the semantics of the statement and announcement which are subsequently added to the transcript. Read more

Adds the prover’s statement to the transcript. This must be called before get_challenge. Read more

Gets the verifier’s synthetic challenge for the non-interactive proof.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Returns a new instance of the invocant that will be marked with M. Read more

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.