Skip to main content

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)
ParamTypeDescription
proving_keyProvingKeyProving key corresponding to a function in an Aleo program
verifying_keyVerifyingKeyVerifying key corresponding to a function in an Aleo program
returnKeyPairKey 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
ParamType
returnProvingKey

verifyingKey

Get the verifying key. This method will remove the verifying key from the key pair

verifyingKey()VerifyingKey
ParamType
returnVerifyingKey