How to claim midnight NIGHT tokens for old Byron Daedalus/Yoroi wallet funds - Tutorial

Hi,

so because you have clicked on this thread i assume that you still have funds left in old Byron-Daedalus or Byron-Yoroi wallets.

Here are the steps to claim your NIGHT tokens for them:

BEFORE YOU DO ANYTHING

  1. Make sure that you have your original 12-Word Byron-Daedalus or 15-Word Byron-Yoroi seed phrase. Without that seed phrase, no key-restore and claim would be possible.
  2. Before you do anything, write down and copy all your Daedalus-/Yoroi-Addresses that have funds on it, these are the DDz… and Ae2… addresses. You can use a blockchain explorer like cardanoscan.io or adastat.net to query an address again and to make sure you have copied and written down the correct one. For Yoroi-Wallet, try to get the derivation path of your individual wallets, they are like 44H/1815H/0H/0/0. Each Yoroi-Address starts with Ae2…
  3. IMPORTANT STEP - Now its time to move your old funds from Byron-Era to a current Shelley-Era wallet. So grab all your old Byron-Funds and move them to a new up2date wallet. Best solution is to use a Hardware-Wallet like Ledger, Keystone or Trezor.
  4. MAKE SURE that you have sent all your old funds to a new Shelley Light- or HardwareWallet.
  5. MAKE SURE that you have sent all your old funds to a new Shelley Light- or HardwareWallet.

Now its time to regenerate your Byron-Keys on the command line

Now its time to restore your Byron-Daedalus or Byron-Yoroi keys on the command line, exciting right? Grab yourself a copy of cardano-signer, you can find it here for Linux, Mac or Windows: Releases · gitmachtl/cardano-signer · GitHub
Make sure its at least version 1.29 or higher.

The commands for Daedalus and Yoroi differ a bit. For Daedalus you will need the 12-Word-Mnemonic and the DDz… address you wanna use, for Yoroi you will need the 15-Word-Mnemonic for your Ae2… addresses and you will have to go thru your derivation paths:

Generate keys from your 12-Word Byron-Daedalus wallet

Syntax - Example, replace the Mnemonic and the Address with your own one:

./cardano-signer keygen --byron \
   --mnemonics "angle segment economy real desk escape educate spice any hood debate pen" \
   --address DdzFFzCqrhsjBoYZiM7FY1tLdzpH5M6cnMJuWdYXFaNmVPkgwFDkCpviM6s9NmgWzZ8HzitHMym2CUsncbRsWFJ5iLP79NF6ms4Lkegx \
   --vkey-extended \
   --json-extended \
   --out-skey byron.skey \
   --out-vkey byron.vkey \
   --out-addr byron.addr
{
  "workMode": "keygen-byron",
  "derivationPath": "12H/5H",
  "derivationType": "byron",
  "mnemonics": "angle segment economy real desk escape educate spice any hood debate pen",
  "rootKey": "f807b0ec4df3cf717b187c726e5cb3d446b7aa44ea159821da5c7ef1eac9f24c311b1dc66ee1f1b4bbb47cfc91d0d92ceb72441c43cc4b7fa4453d2c42478fa4df8409cb06bbdba84bbed8d6fb448e268ef6cde08a51a967d331bbfe7ad0b2db",
  "rootPublicKey": "458d4abcddab65e9c83ecf6dfcfad74630d23b6ceb5f983905eb358a0cf09ba2df8409cb06bbdba84bbed8d6fb448e268ef6cde08a51a967d331bbfe7ad0b2db",
  "address": "DdzFFzCqrhsjBoYZiM7FY1tLdzpH5M6cnMJuWdYXFaNmVPkgwFDkCpviM6s9NmgWzZ8HzitHMym2CUsncbRsWFJ5iLP79NF6ms4Lkegx",
  "secretKey": "f879fc16714aaa499f13dbbbdd1f6498dd307b0503df98226bc5de32cb7a930d9139817877036ace9ebf5089d4be256cfdf32b4bd5d7c71e3f96f40dafdbe7b4a73936848682069c6d7b5cd9400023769d2e2940568226e0e170a28dbcf4bfed6fa64abdf8eef4a7e19eebf56973c9a5e739ec20af7eed67ed4e13ced423d4f4",
  "publicKey": "a73936848682069c6d7b5cd9400023769d2e2940568226e0e170a28dbcf4bfed6fa64abdf8eef4a7e19eebf56973c9a5e739ec20af7eed67ed4e13ced423d4f4",
  "output": {
    "skey": {
      "type": "PaymentSigningKeyByron_ed25519_bip32",
      "description": "Payment Signing Key",
      "cborHex": "5880f879fc16714aaa499f13dbbbdd1f6498dd307b0503df98226bc5de32cb7a930d9139817877036ace9ebf5089d4be256cfdf32b4bd5d7c71e3f96f40dafdbe7b4a73936848682069c6d7b5cd9400023769d2e2940568226e0e170a28dbcf4bfed6fa64abdf8eef4a7e19eebf56973c9a5e739ec20af7eed67ed4e13ced423d4f4"
    },
    "vkey": {
      "type": "PaymentVerificationKeyByron_ed25519_bip32",
      "description": "Payment Verification Key",
      "cborHex": "5840a73936848682069c6d7b5cd9400023769d2e2940568226e0e170a28dbcf4bfed6fa64abdf8eef4a7e19eebf56973c9a5e739ec20af7eed67ed4e13ced423d4f4"
    }
  }
}

This has now generated your key files byron.skey, byron.vkey and the address file byron.addr

→ Continue with the Claim-Part

Generate keys from your 15-Word Byron-Yoiroi wallet

Syntax - Example, replace the Mnemonic and the Derivation-Path with your own one:

./cardano-signer keygen --yoroi \
   --mnemonics "attack turn stick clinic quantum typical hour monitor panther marine jeans unit float final office" \
   --path 44H/1815H/0H/0/0 \
   --vkey-extended \
   --json-extended \
   --out-skey byron.skey \
   --out-vkey byron.vkey \
   --out-addr byron.addr
{
  "workMode": "keygen-yoroi",
  "derivationPath": "44H/1815H/0H/0/0",
  "derivationType": "icarus",
  "mnemonics": "attack turn stick clinic quantum typical hour monitor panther marine jeans unit float final office",
  "rootKey": "08e056419bcab3fe5a74595369d1097a7d676dec8a9dd713a9c1271ecedc3b5a6149498632b10a19a3aab72f6f0b41aab7bba8acb1cf53f21539952e9f96c89b70d5ba78a647366e6bc1e2a91fceb0dbe09e0db6cf2cfbbf2ec1a85aee3d98c5",
  "address": "Ae2tdPwUPEZKGwNPLJTp1Aj7gqUUrHPbmUnEExz2eSLwD4CvJzvKHWBGsZL",
  "secretKey": "f87521e63dbc00062059ffbd5dd7b7241c1996ec61f61a98c6fdc06ae0dc3b5abdd20324fe786ae12b78116ef9838248b08c3d0a92f4a111717705d9bd1f6ecff4bf16dd8448f44d240d9337e030c0b6ba4f41e17bb3f32dfc063a9bfbd9cb25157b7caa081f8760686b6f92102bde3e1e5e0d238c54f68021cf2fb15e7da584",
  "publicKey": "f4bf16dd8448f44d240d9337e030c0b6ba4f41e17bb3f32dfc063a9bfbd9cb25157b7caa081f8760686b6f92102bde3e1e5e0d238c54f68021cf2fb15e7da584",
  "XpubKeyHex": "cbf2152f3d09af4d9b0e38fef39da890cd422bb08fc9b1923bf673e5f097bc720cb0568075c0edd8e938428a2f8f341065be44662e89212133ab87659a24392e",
  "XpubKeyBech": "xpub1e0ep2teapxh5mxcw8rl088dgjrx5y2as3lymry3m7ee7tuyhh3eqevzksp6upmwcayuy9z303u6pqed7g3nzazfpyye6hpm9ngjrjts7kwwt8",
  "output": {
    "skey": {
      "type": "PaymentSigningKeyByron_ed25519_bip32",
      "description": "Payment Signing Key",
      "cborHex": "5880f87521e63dbc00062059ffbd5dd7b7241c1996ec61f61a98c6fdc06ae0dc3b5abdd20324fe786ae12b78116ef9838248b08c3d0a92f4a111717705d9bd1f6ecff4bf16dd8448f44d240d9337e030c0b6ba4f41e17bb3f32dfc063a9bfbd9cb25157b7caa081f8760686b6f92102bde3e1e5e0d238c54f68021cf2fb15e7da584"
    },
    "vkey": {
      "type": "PaymentVerificationKeyByron_ed25519_bip32",
      "description": "Payment Verification Key",
      "cborHex": "5840f4bf16dd8448f44d240d9337e030c0b6ba4f41e17bb3f32dfc063a9bfbd9cb25157b7caa081f8760686b6f92102bde3e1e5e0d238c54f68021cf2fb15e7da584"
    }
  }
}

This has now generated your key files byron.skey, byron.vkey and the address file byron.addr

Take a look at the address, does it match one of your old Yoroi-Addresses? Yes, good. No? Than you have to itterate over the derivation path, so you first try was 44H/1815H/0H/0/0, now you have to try 44H/1815H/0H/0/1, than 44H/1815H/0H/0/2… Than increas the second last number from 0 to 1 like 44H/1815H/0H/1/0, 44H/1815H/0H/1/1 and so on. Last thing you can try is to increase the account number like 44H/1815H/1H/0/0 and so on.

Claim your NIGHT token from the Midnight Glacier Drop Page

Go to the Midnight Glacier Drop Website https://claim.midnight.gd/ and start a new claim.

Use your old Byron-Address DDz… or Ae2… as the Origin-Address, input a new Cardano Shelley-Address as the claim destination address. Accept the terms and Conditions.

When you are at the manual signing point, copy the provided <message> to sign and head back to the command-line. You must now sign this message with your generated byron.skey like:

./cardano-signer sign \
   --data "STAR 123456789 to addr1v9xxxxxxxxxxxxxxxxxxxxxx8b" \
   --secret-key byron.skey \
   --json
{
  "signature": "ca7c5747a41a89c751288ed9b1483c69048ea843ad6661477c85bbaed104ede8a65f1f8ee3eac61c40658bf7f5f7fbbca4d359bde4b2a67f915df76ee745e10b",
  "publicKey": "a73936848682069c6d7b5cd9400023769d2e2940568226e0e170a28dbcf4bfed"
}

Copy the signature part between the double-quotes and paste it back on the midnight claim portal form.

Copy the publicKey part between the double-quotes and paste it back on the midnight claim portal form.

Submit the form and claim your NIGHT tokens.

Congrats, you have now successfully claimed your NIGHT tokens for your old Byron-Wallet :grinning_face:

4 Likes

I’ve released cardano-signer 1.31.0 today, which adds support for

  • 27-word Daedalus PaperWallet Mnemonic

You can just use it like with the 12-word byron Mnemonic described above.