Transcript
Functions
appendMessage
function appendMessage(TranscriptData memory self, bytes memory message) internal pure;
appendChallenge
function appendChallenge(TranscriptData memory self, uint256 challenge) internal pure;
appendCommitments
function appendCommitments(TranscriptData memory self, BN254.G1Point[] memory comms)
internal
pure;
appendCommitment
function appendCommitment(TranscriptData memory self, BN254.G1Point memory comm) internal pure;
getChallenge
function getChallenge(TranscriptData memory self) internal pure returns (uint256 ret);
appendVkAndPubInput
Append the verifying key and the public inputs to the transcript.
function appendVkAndPubInput(
TranscriptData memory self,
IPlonkVerifier.VerifyingKey memory verifyingKey,
uint256[] memory publicInput
) internal pure;
Parameters
| Name | Type | Description |
|---|---|---|
self | TranscriptData | |
verifyingKey | IPlonkVerifier.VerifyingKey | verifying key |
publicInput | uint256[] | a list of field elements |
appendProofEvaluations
Append the proof to the transcript. Only used for test purposes.
function appendProofEvaluations(
TranscriptData memory self,
IPlonkVerifier.PlonkProof memory proof
) internal pure;
Structs
TranscriptData
struct TranscriptData {
bytes32 state;
bytes transcript;
}