Multisig Keys
Generating A Multisig Wallet
You can generate a multisig wallet using keys you own using the secretcli by:
The command above will generate an output similar to the following:
Generating A Multisig Wallet With Keys You Do Not Own
You can generate multisig wallets with your own keys, and using other public keys you do not own using the secretcli:
Now that all the keys are present in your local secretcli keyring, create a multisig wallet as you normally would with keys that you own:
To confirm the multisig wallet was made with the correct addresses use:
K Value
K
is the minimum number of private keys that must have signed the transactions carrying the public key's address as a signer. Typically the K value will be lower than the total number of wallets associated with the multisig wallet, and high enough to require the majority of associated wallets to approve transactions.
Best Practices
For example, if there are 6 controlling addresses associated with a multisig wallet it would be poor practice for set the K value to 1, 2, 5, or 6. If the K value is too low (i.e 1 or 2) a minority of multisig members will be always in control of the multisig wallet; if any one or two members agree on making a transaction they will be able to even if the remaining 4-5 members do not agree with the transactions. If the K value is too high, and one or two of the members wallets on the multisig are lost or compromised no transactions with the multisig will be possible, and all associated assets held by the multisig wallet will be lost.
Multisig Flags
The --multisig
flag must contain the name of public keys to be combined into a public key that will be generated and stored as new-key-alias
in the local database.
All names supplied through --multisig
must already exist in the local database. is set. The order of the supplied keys on the command line does not matter, i.e. the following commands generate two identical keys:
To make the multisig wallet keys get passed into the multisig wallet in a specific order (i.e the order they are given) the --nosort
flag must be used:
For demonstration purposes, the above command will produce a multisig wallet where each key is added in the exact order they are given to the public keys associated with the multisig wallet:
Last updated