Proof

Proof

Class to create, store and pass around AZTEC proofs and related transcripts, outputs and hashes.

Constructor

new Proof(type, inputNotes, outputNotes, sender, publicValue, publicOwner)

Parameters:
Name Type Description
type string

one of the ProofType enum values

inputNotes Array.<Note>

input AZTEC notes

outputNotes Array.<Note>

output AZTEC notes

sender string

Ethereum address of transaction sender

publicValue string

public commitment being added to proof

publicOwner string

holder of a public token being converted

Source:

Methods

constructChallengeRecurse()

Compute the Fiat-Shamir heuristic-ified challenge variable. Separated out into a distinct method so that we can stub this for extractor tests

Source:

validateInputs()

Validate that the inputs in the constructor are well-formed

Source: