pub struct XoFTranscript<H>(_)
where
    H: Input + ExtendableOutput + Clone
;
Expand description

Very simple transcript construction from a modern hash fucntion.

We provide this transcript type to directly use conventional hash functions with an extensible output mode, like Shake128 and Blake2x.

We recommend using merlin::Transcript instead because merlin provides the transcript abstraction natively and might function better in low memory enviroments. We therefore do not provide conveniences like signing_context for this.

We note that merlin already uses Keccak, upon which Shak128 is based, and that no rust implementation for Blake2x currently exists.

We caution that our transcript abstractions cannot provide the protections agsint hash collisions that Ed25519 provides via double hashing, but that prehashed Ed25519 variants loose. As such, any hash function used here must be collision resistant. We strongly recommend agsint building XOFs from weaker hash functions like SHA1 with HKDF constructions or similar.

In XoFTranscript style, we never expose the hash function H underlying this type, so that developers cannot circument the domain seperartion provided by our methods. We do this to make &mut XoFTranscript : SigningTranscript safe.

Implementations

Create a XoFTranscript from a conventional hash functions with an extensible output mode.

We intentionally consume and never reexpose the hash function provided, so that our domain seperation works correctly even when using &mut XoFTranscript : SigningTranscript.

Trait Implementations

Performs the conversion.

Extend transcript with some bytes, shadowed by merlin::Transcript.

Produce some challenge bytes, shadowed by merlin::Transcript.

Produce secret witness bytes from the protocol transcript and any “nonce seeds” kept with the secret keys. Read more

Extend transcript with a protocol name

Extend the transcript with a compressed Ristretto point

Produce the public challenge scalar e.

Produce a secret witness scalar k, aka nonce, from the protocol transcript and any “nonce seeds” kept with the secret keys. Read more

Produce secret witness bytes from the protocol transcript and any “nonce seeds” kept with the secret keys. Read more

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.

Performs the conversion.

Should always be Self

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.

Real underlying SigningTranscript

Return the underlying SigningTranscript after addressing VRF output malleability, usually by making it non-malleable, Read more