KeyPair
Overview
Key pair object containing both the function proving and verifying keys for Aleo programs. This class provides access to cryptographic keys needed for proving and verifying function executions.
Constructors
KeyPair
Create new key pair from proving and verifying keys
KeyPair(proving_key, verifying_key)
| Param | Type | Description |
|---|---|---|
| proving_key | ProvingKey | Proving key corresponding to a function in an Aleo program |
| verifying_key | VerifyingKey | Verifying key corresponding to a function in an Aleo program |
| return | KeyPair | Key pair object containing both the function proving and verifying keys |
Methods
provingKey
Get the proving key. This method will remove the proving key from the key pair
provingKey() ► ProvingKey
| Param | Type |
|---|---|
| return | ProvingKey |
verifyingKey
Get the verifying key. This method will remove the verifying key from the key pair
verifyingKey() ► VerifyingKey
| Param | Type |
|---|---|
| return | VerifyingKey |