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
| Param | Type |
|---|---|
| return | string |
copy
Create a copy of the proving key
copy() ► ProvingKey
| Param | Type |
|---|---|
| return | ProvingKey |
fromBytes
Construct a new proving key from a byte array
fromBytes(bytes) ► ProvingKey
| Param | Type | Description |
|---|---|---|
| bytes | Uint8Array | Byte array representation of a proving key |
| return | ProvingKey | Proving key object |
fromString
Create a proving key from string
fromString(string) ► ProvingKey
| Param | Type | Description |
|---|---|---|
| string | string | String representation of the proving key |
| return | ProvingKey | Proving key object |
toBytes
Return the byte representation of a proving key
toBytes() ► Uint8Array
| Param | Type |
|---|---|
| return | Uint8Array |
toString
Get a string representation of the proving key
toString() ► string
| Param | Type |
|---|---|
| return | string |