// Go reference values of BLS12-381 that the tests running on Node.js use: // they read no file. Each is copied from the JSON that Go wrote, // testdata/vectors/tlock_ibe.json or test/vectors/bls12381_vectors.json, and // bls12381_constants_test.dart checks it against that JSON on the VM. library; /// The generator of G1, compressed (tlock_ibe.json). const generatorG1 = '97f1d3a73197d7942695638c4fa9ac0fc3688c4f9774b905a14e3a3f171bac586c55e83f' 'f97a1aeffb3af00adb22c6bb'; /// The generator of G2, compressed (tlock_ibe.json). const generatorG2 = '93e02b6052719f607dacd3a088274f65596bd0d09920b61ab5da61bbdc7f5049334cf112' '13945d57e5ac7d055d042b7e024aa2b2f08f0a91260805272dc51051c6e47ad4fa403b02' 'b4510b647ae3d1770bac0326a805bbefd48056c8c121bdb8'; /// H2(e(G1, G2)) truncated to 16 bytes (tlock_ibe.json). const h2OfGenerators = 'cb87319f24560b5231579a09ad79f12e'; /// The identity of round 1000 hashed to G1 with the DST of Quicknet /// (bls12381_vectors.json). const hashOfRound1000 = '8f5a32d53837b00fbc0ee31ce9966435a41c5188a80ce9934d3c80588b6ad6f643ebda1b' '83ef89e44da9ced6205cdecf'; /// hash_to_curve of "abc" with the DST of RFC 9380, appendix J.9.1: x /// (bls12381_vectors.json). const hashOfAbcX = '03567bc5ef9c690c2ab2ecdf6a96ef1c139cc0b2f284dca0a9a7943388a49a3aee664ba5' '379a7655d3c68900be2f6903'; /// The same: y. const hashOfAbcY = '0b9c15f3fe6e5cf4211f346271d7b01c8f3b28be689c8429c85b67af215533311f0b8dfa' 'aa154fa6b88176c229f2885d';