pub fn observe_message<H, B>(
writer: &mut TranscriptWriter<'_, B>,
message: &[u8],
)where
H: HashSuite,
B: BufMut,Expand description
Observes the hash of a signed message into a transcript, turning a proof of knowledge into a signature of knowledge.
The message is hashed with H::LeafHash (the Merkle scheme’s leaf hash) and the resulting
digest is observed into the transcript via the provided observing writer. Both the prover and
the verifier must call this with the same message before any other transcript interaction.
The writer must be an observing writer (obtained from transcript.observe()), so the
digest is mixed into the Fiat-Shamir state without being written to the proof tape.