What are the genesis key files?

algorithm

GENERIC

source branch

ALL

updated November 12, 2022, 10:47 am

The genesis key files contain the public and private key of the address in the genesis block.

The files are in pem and hex format, you can open the files with a text editor like notepad or nano.

Example:

Open the hex file file with a text editor, it will look similar like this:

Private-Key: (256 bit)
priv:
58:b0:9f:a9:1b:8c:10:7e:e7:f5:d6:85:eb:30:02:
b5:95:03:16:a2:58:37:1b:f0:9a:da:6c:a0:cf:af:
19:5a
pub:
04:18:c5:8a:a3:90:52:25:a9:4a:e0:13:a5:14:bc:
5b:9d:5d:bf:b8:50:10:67:33:58:05:91:cf:65:98:
9d:6d:89:52:be:f4:9c:60:d6:92:d6:c5:6e:ab:49:
35:99:b2:93:9f:fe:24:a4:82:93:82:10:b1:c1:27:
74:3c:ea:ff:52
ASN1 OID: secp256k1
-----BEGIN EC PRIVATE KEY-----
MHQCAQEEIFiwn6kbjBB+5/XWheswArWVAxaiWDcb8JrabKDPrxlaoAcGBSuBBAAK
oUQDQgAEGMWKo5BSJalK4BOlFLxbnV2/uFAQZzNYBZHPZZidbYlSvvScYNaS1sVu
q0k1mbKTn/4kpIKTghCxwSd0POr/Ug==
-----END EC PRIVATE KEY-----


Next step is to convert the private address to a format that your wallet understands.

You can do this by removing the character ":" from the string after the text "priv".

This will give you the following private key:

58b09fa91b8c107ee7f5d685eb3002b5950316a258371bf09ada6ca0cfaf195a

You can import the private key in your wallet with the following article:

How do I import the private key for a public address?

https://www.walletbuilders.com/learning-center/article/how-do-i-import-the-private-key-for-a-public-address