Create a threshold key
Last updated
Last updated
Create a key structure that requires the defined threshold value to sign. A threshold key can contain a Ed25519 or ECDSA (secp256k1_)_ key type. You can use either the public key or the private key to create the key structure. If the threshold requirement is not met when signing transactions, the network will return an "INVALID_SIGNATURE" error.
Constructor | Type | Description |
---|---|---|
Method | Type | Description |
---|---|---|
new ThresholdKey(<threshold>)
int
Initializes a ThresholdKey object
add(<key>)
Ed25519PublicKey
Add one public key to the key list
addAll(<keys>)
Ed25519PublicKey
Add all keys to the key list