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
| Param | Type | Description |
|---|---|---|
| private_key | PrivateKey | Private key |
| return | ComputeKey | Compute key |
address
Get the address from the compute key
address() ► Address
| Param | Type |
|---|---|
| return | Address |
sk_prf
Get the sk_prf of the compute key
sk_prf() ► Scalar
| Param | Type |
|---|---|
| return | Scalar |
pk_sig
Get the pk_sig of the compute key
pk_sig() ► Group
| Param | Type |
|---|---|
| return | Group |
pr_sig
Get the pr_sig of the compute key
pr_sig() ► Group
| Param | Type |
|---|---|
| return | Group |