Skip to main content

ComputeKey

Overview

Represents a compute key for an Aleo account. The ComputeKey class provides methods for creating compute keys from private keys and accessing their components (sk_prf, pk_sig, pr_sig). Compute keys are used in the execution of Aleo programs.

Methods

from_private_key

Create a new compute key from a private key

from_private_key(private_key)ComputeKey
ParamTypeDescription
private_keyPrivateKeyPrivate key
returnComputeKeyCompute key

address

Get the address from the compute key

address()Address
ParamType
returnAddress

sk_prf

Get the sk_prf of the compute key

sk_prf()Scalar
ParamType
returnScalar

pk_sig

Get the pk_sig of the compute key

pk_sig()Group
ParamType
returnGroup

pr_sig

Get the pr_sig of the compute key

pr_sig()Group
ParamType
returnGroup