Creating key quorums
To use quorum approvals, you must first create your P-256 keypairs first, then register them with Privy alongside a quorum threshold. You can create a keypair with the following command:
After you have generated your keypairs, register them with Privy via the Dashboard or REST API and save the id
for future use.
Once you have generated a P-256 keypair, you can register the public key for the keypair with Privy by making a POST
request to:
Body
In the request body, include the following:
A list of PEM-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 create a new authorization key might look like the following:
Was this page helpful?