Multisig
Learn how to generate, sign and broadcast a transaction using the keyring multisig. A multisig account is an Paxeer Network account with a special key that can require more than one signature to sign transactions. This can be useful for increasing the security of the account or for requiring the consent of multiple parties to make transactions. Multisig accounts can be created by specifying:- threshold number of signatures required
- the public keys involved in signing
Generate a Multisig key
K is the minimum number of private keys that must have signed the transactions that carry the public key’s address as signer.
The --multisig flag must contain the name of public keys that will be combined into a public key that will be
generated and stored as new_key_name in the local database. All names supplied through --multisig must already exist
in the local database.
Unless the flag --nosort is set, the order in which the keys are supplied on the command line does not matter, i.e. the
following commands generate two identical keys:
Signing a transaction
Step 1: Create the multisig key
Let’s assume that you havetest1 and test2 want to make a multisig account with test3.
First import the public keys of test3 into your keyring.
Step 2: Create the multisig transaction
We want to send 5 Paxeer Network from our multisig account toPaxeer Network1rgjxswhuxhcrhmyxlval0qa70vxwvqn2e0srft.
unsignedTx.json contains the unsigned transaction encoded in JSON.
Step 3: Sign individually
Sign withtest1 and test2 and create individual signatures.