Skip to main content

ProvingKey

Overview

Represents a proving key for a function within an Aleo program. The ProvingKey class provides methods for loading, serializing, and inspecting proving keys which are used to generate zero-knowledge proofs for program executions.

Methods

checksum

Return the checksum of the proving key

checksum() ► string
ParamType
returnstring

copy

Create a copy of the proving key

copy()ProvingKey
ParamType
returnProvingKey

fromBytes

Construct a new proving key from a byte array

fromBytes(bytes)ProvingKey
ParamTypeDescription
bytesUint8ArrayByte array representation of a proving key
returnProvingKeyProving key object

fromString

Create a proving key from string

fromString(string)ProvingKey
ParamTypeDescription
stringstringString representation of the proving key
returnProvingKeyProving key object

toBytes

Return the byte representation of a proving key

toBytes()Uint8Array
ParamType
returnUint8Array

toString

Get a string representation of the proving key

toString() ► string
ParamType
returnstring