To support JAM implementers having secret key / public key for
Ed25519+Bandersnatch+BLS derivable from a single 32-byte seed, this
directory contains simple key
program to dump them out as a simple
JSON blob with 6 attributes:
bandersnatch
,bandersnatch_priv
: Bandersnatch Public and Private Key based ondavxy/ark-ec-vrfs
libraryed25519
,ed25519_priv
: Ed25519 Public and Private Key -- the private key is the seedbls
,bls_priv
: BLS Public and Private Key based onw3f_bls
library
key
is written in Rust because the W3F crypto libraries for Bandersnatch + BLS are likely FFI targets for JAM implementers.
Note: Under no circumstance should any of these keys be used for production use. This is for JAM Testnet purposes only.
Build with:
cargo build --release
Run with:
# target/release/key 0x0000000000000000000000000000000000000000000000000000000000000000
Common seeds of 0x00..00
through 0x00..05
are shown below and match genesis.json authorities.
We use Alice/Bob/.../Fergie and convenient labels for these seeds.
Alice:
# target/release/key 0x0000000000000000000000000000000000000000000000000000000000000000
{
"bandersnatch": "0x5e465beb01dbafe160ce8216047f2155dd0569f058afd52dcea601025a8d161d",
"ed25519": "0x3b6a27bcceb6a42d62a3a8d02a6f0d73653215771de243a63ac048a18b59da29",
"bls": "0xb27150a1f1cd24bccc792ba7ba4220a1e8c36636e35a969d1d14b4c89bce7d1d463474fb186114a89dd70e88506fefc9830756c27a7845bec1cb6ee31e07211afd0dde34f0dc5d89231993cd323973faa23d84d521fd574e840b8617c75d1a1d0102aa3c71999137001a77464ced6bb2885c460be760c709009e26395716a52c8c52e6e23906a455b4264e7d0c75466e",
"bandersnatch_priv": "0x51c1537c18eea5c5969cb2ae45c1224cc245de5c5b8e6e25f48fb99f2786ee05",
"ed25519_priv": "0x0000000000000000000000000000000000000000000000000000000000000000",
"bls_priv": "0x25f137a62c84a5adc12c8159d678a80b51f81bbe85d41e144c7a4e1edbdc5f44"
}
Bob:
# target/release/key 0x0100000001000000010000000100000001000000010000000100000001000000
{
"bandersnatch": "0x3d5e5a51aab2b048f8686ecd79712a80e3265a114cc73f14bdb2a59233fb66d0",
"ed25519": "0x22351e22105a19aabb42589162ad7f1ea0df1c25cebf0e4a9fcd261301274862",
"bls": "0xa2534be5b2f761dc898160a9b4762eb46bd171222f6cdf87f5127a9e8970a54c44fe7b2e12dda098854a9aaab03c3a47953085668673a84b0cedb4b0391ed6ae2deb1c3e04f0bc618a2bc1287d8599e8a1c47ff715cd4cbd3fe80e2607744d4514b491ed2ef76ae114ecb1af99ba6af32189bf0471c06aa3e6acdaf82e7a959cb24a5c1444cac3a6678f5182459fd8ce",
"bandersnatch_priv": "0x9e84e7bb7c172ba7c0549f495b2412ce7d9d862719d5de4db97bacd97b60b505",
"ed25519_priv": "0x0100000001000000010000000100000001000000010000000100000001000000",
"bls_priv": "0x9b21e2203afd8e0a352cce92b309a27a89e5aff3572ee70b1e82e976846fff30"
}
Charlie:
# target/release/key 0x0200000002000000020000000200000002000000020000000200000002000000
{
"bandersnatch": "0xaa2b95f7572875b0d0f186552ae745ba8222fc0b5bd456554bfe51c68938f8bc",
"ed25519": "0xe68e0cf7f26c59f963b5846202d2327cc8bc0c4eff8cb9abd4012f9a71decf00",
"bls": "0x8faee314528448651e50bea6d2e7e5d3176698fea0b932405a4ec0a19775e72325e44a6d28f99fba887e04eb818f13d1b73f75f0161644283df61e7fbaad7713fae0ef79fe92499202834c97f512d744515a57971badf2df62e23697e9fe347f168fed0adb9ace131f49bbd500a324e2469569423f37c5d3b430990204ae17b383fcd582cb864168c8b46be8d779e7ca",
"bandersnatch_priv": "0x91ebd09c591e41858a7a2a45c671642708f546c163b76eef0991b755017e7412",
"ed25519_priv": "0x0200000002000000020000000200000002000000020000000200000002000000",
"bls_priv": "0x78f22d094f700292fa218f05ef42f4bc209c665b77aa2be3e80952139eb1cd54"
}
Dave:
# target/release/key 0x0300000003000000030000000300000003000000030000000300000003000000
{
"bandersnatch": "0x7f6190116d118d643a98878e294ccf62b509e214299931aad8ff9764181a4e33",
"ed25519": "0xb3e0e096b02e2ec98a3441410aeddd78c95e27a0da6f411a09c631c0f2bea6e9",
"bls": "0x8dfdac3e2f604ecda637e4969a139ceb70c534bd5edc4210eb5ac71178c1d62f0c977197a2c6a9e8ada6a14395bc9aa3a384d35f40c3493e20cb7efaa799f66d1cedd5b2928f8e34438b07072bbae404d7dfcee3f457f9103173805ee163ba550854e4660ccec49e25fafdb00e6adfbc8e875de1a9541e1721e956b972ef2b135cc7f71682615e12bb7d6acd353d7681",
"bandersnatch_priv": "0x40ad858dd0abe3016f7834831c93ae02764e0bb99ee204ffc6777b01c946ac0c",
"ed25519_priv": "0x0300000003000000030000000300000003000000030000000300000003000000",
"bls_priv": "0x99b1c8ea82f8d8f8019b5e7c368abce2aa578af6f722050947336c29034a4660"
}
Eve:
# target/release/key 0x0400000004000000040000000400000004000000040000000400000004000000
{
"bandersnatch": "0x48e5fcdce10e0b64ec4eebd0d9211c7bac2f27ce54bca6f7776ff6fee86ab3e3",
"ed25519": "0x5c7f34a4bd4f2d04076a8c6f9060a0c8d2c6bdd082ceb3eda7df381cb260faff",
"bls": "0xb78a95d81f6c7cdc517a36d81191b6f7718dcf44e76c0ce9fb724d3aea39fdb3c5f4ee31eb1f45e55b783b687b1e9087b092a18341c7cda102b4100685b0a014d55f1ccdb7600ec0db14bb90f7fc3126dc2625945bb44f302fc80df0c225546c06fa1952ef05bdc83ceb7a23373de0637cd9914272e3e3d1a455db6c48cc6b2b2c17e1dcf7cd1586a235821308aee001",
"bandersnatch_priv": "0x0dea7844b6b937f8b00acea90a8ce9dfe07fdbd2a1e4ff09022340d9bb159911",
"ed25519_priv": "0x0400000004000000040000000400000004000000040000000400000004000000",
"bls_priv": "0xaccfcc058783de82a5f90151e1bd2a0e7d5907b35bf1dcc9b91d28627ca9bd68"
}
Fergie:
# target/release/key 0x0500000005000000050000000500000005000000050000000500000005000000
{
"bandersnatch": "0xf16e5352840afb47e206b5c89f560f2611835855cf2e6ebad1acc9520a72591d",
"ed25519": "0x837ce344bc9defceb0d7de7e9e9925096768b7adb4dad932e532eb6551e0ea02",
"bls": "0xb0b9121622bf8a9a9e811ee926740a876dd0d9036f2f3060ebfab0c7c489a338a7728ee2da4a265696edcc389fe02b2caf20b5b83aeb64aaf4184bedf127f4eea1d737875854411d58ca4a2b69b066b0a0c09d2a0b7121ade517687c51954df913fe930c227723dd8f58aa2415946044dc3fb15c367a2185d0fc1f7d2bb102ff14a230d5f81cfc8ad445e51efddbf426",
"bandersnatch_priv": "0x68f5494ec1c3d3cd8ff2a3cb285abf0e826b2c762d95fc2e953eaef666315403",
"ed25519_priv": "0x0500000005000000050000000500000005000000050000000500000005000000",
"bls_priv": "0x870ac1a7736dc9d533f42711fed07f22ac317052d390bce13e02a7cc0038c126"
}