Creating key quorums
Generate a keypair
To use quorum approvals, you must first generate a P-256 keypair, then register them with Privy alongside an authorization threshold. You can create a keypair with the following command:
Register the public key
After you have generated your keypairs, register them with Privy via the Dashboard or REST API, and make sure to save the id
for future use.
Register the public key of the keypair with Privy by making a POST
request to:
Body
In the request body, include the following:
A list of PEM or DER formatted P-256 public keys to register. Make sure to include the PEM header and footer and to properly escape any newlines.
The minimum number of signatures required to authorize an action. If left unset, the default is all keys.
Human readable display name to attach to the key.
Response
If the request is successful, Privy will return the following in the response:
Unique ID for the key quorum, used to assign the owner_id
to a resource.
The list of public keys and their display names.
The minimum number of signatures required to authorize an action. If left unset, the default is all keys.
Human readable display name to attach to the key.
Example
As an example, a request to register a 2 of 2 key quorum might look like the following:
Register the public key of the keypair with Privy by making a POST
request to:
Body
In the request body, include the following:
A list of PEM or DER formatted P-256 public keys to register. Make sure to include the PEM header and footer and to properly escape any newlines.
The minimum number of signatures required to authorize an action. If left unset, the default is all keys.
Human readable display name to attach to the key.
Response
If the request is successful, Privy will return the following in the response:
Unique ID for the key quorum, used to assign the owner_id
to a resource.
The list of public keys and their display names.
The minimum number of signatures required to authorize an action. If left unset, the default is all keys.
Human readable display name to attach to the key.
Example
As an example, a request to register a 2 of 2 key quorum might look like the following:
Visit the Authorization keys page of your dashboard, click New key, and select Register key quorum instead.
Specify the public keys and an authorization threshold.