Variable Genesis

Genesis KeyPair used in unittests

immutable(KeyPair) Genesis = KeyPair(PublicKey(Point(BitBlob([cast(ubyte)145u, cast(ubyte)153u, cast(ubyte)230u, cast(ubyte)20u, cast(ubyte)194u, cast(ubyte)78u, cast(ubyte)108u, cast(ubyte)254u, cast(ubyte)62u, cast(ubyte)72u, cast(ubyte)188u, cast(ubyte)84u, cast(ubyte)10u, cast(ubyte)21u, cast(ubyte)43u, cast(ubyte)41u, cast(ubyte)161u, cast(ubyte)79u, cast(ubyte)255u, cast(ubyte)183u, cast(ubyte)164u, cast(ubyte)239u, cast(ubyte)2u, cast(ubyte)24u, cast(ubyte)147u, cast(ubyte)191u, cast(ubyte)64u, cast(ubyte)235u, cast(ubyte)165u, cast(ubyte)17u, cast(ubyte)172u, cast(ubyte)113u]))), SecretKey(Scalar(BitBlob([cast(ubyte)219u, cast(ubyte)240u, cast(ubyte)132u, cast(ubyte)196u, cast(ubyte)246u, cast(ubyte)124u, cast(ubyte)232u, cast(ubyte)51u, cast(ubyte)106u, cast(ubyte)227u, cast(ubyte)192u, cast(ubyte)37u, cast(ubyte)207u, cast(ubyte)52u, cast(ubyte)79u, cast(ubyte)97u, cast(ubyte)126u, cast(ubyte)3u, cast(ubyte)28u, cast(ubyte)131u, cast(ubyte)199u, cast(ubyte)13u, cast(ubyte)37u, cast(ubyte)58u, cast(ubyte)72u, cast(ubyte)139u, cast(ubyte)97u, cast(ubyte)27u, cast(ubyte)78u, cast(ubyte)70u, cast(ubyte)48u, cast(ubyte)5u]))));

In unittests, we need the genesis key pair to be known for us to be able to write tests. Hence the genesis block has a different value.

Note that while this is a well-known keys, it is not part of the range returned by byRange, nor can it be indexed by size_t, to avoid it being mistakenly used. It is however accessible via opIndex(PublicKey).

Address

boa1xzgenes5cf8xel37fz79gzs49v56znllk7jw7qscjwl5p6a9zxk8zaygm67