How to create a Multi-Sig DRep

Multi-sig DReps opens a world of possibilities for DAOs and organizations. Here’s how to build a multi-sig DRep with the CLl, step by step:

First, build your DRep key pairs…
20240407_072012

Then, generate a key hash from your DRep verification key that you will then use in your script. (Ask the other signers to do the same)
20240407_072124

Then, build your DRep multi-sig script like this :point_down:. Make sure to mention how many signature you would like to be required. In this example 2 of 3 signatures are required.
20240407_072211

If you want all signature to be mandatory for the vote to be valid, replace “atLeast” by “all” and remove “required”: 2
like this :smiley::point_down:
20240407_072302

When your script is ready, generate a script hash from it. :point_down:
20240407_072342

Now that you have your script hash, you are finaly ready to build your DRep registration certificate. :star_struck:
20240407_072419

Alright!:star_struck:
Now is the time to build your transaction to include your DRep certificate and your script.:smile::point_down:
In this case, we had 4 witness override:
:one: - my drep signing key
:two: - @AdamRusch drep signing key
:three: - the payment signing key (for the transaction)
:four: - And the script
20240407_072519

Now that you have your “unsigned transaction”, (tx.raw), you will need to share it with the other signing members of your DAO. Then each one of them (including you) will generate a witness file by using your drep.skey.
:warning:Do not forget to do the same with your payment signing key.
20240407_072614

Now is the time to assemble your final transaction with all the witness files you and your DAO friend generated. :smiling_face_with_three_hearts::fist:
20240407_072657

Submit your transaction on-chain and CONGRATULATION! You made it! :partying_face::partying_face::partying_face::partying_face: :smiley::+1:
You can check if it worked using the 2 nd command :point_down:
20240407_072747

2 Likes