cosmwasm_core/
crypto.rs

1pub const BLS12_381_G1_POINT_LEN: usize = 48;
2pub const BLS12_381_G2_POINT_LEN: usize = 96;
3
4/// A generator in G1 (in compressed serialization).
5///
6/// This can be used directly for signature verification
7/// (see e.g. https://twitter.com/simon_warta/status/1786342207106019765)
8pub const BLS12_381_G1_GENERATOR: [u8; BLS12_381_G1_POINT_LEN] = [
9    151, 241, 211, 167, 49, 151, 215, 148, 38, 149, 99, 140, 79, 169, 172, 15, 195, 104, 140, 79,
10    151, 116, 185, 5, 161, 78, 58, 63, 23, 27, 172, 88, 108, 85, 232, 63, 249, 122, 26, 239, 251,
11    58, 240, 10, 219, 34, 198, 187,
12];
13
14/// A generator in G2 (in compressed serialization).
15///
16/// This can be used directly for signature verification
17/// (see e.g. https://twitter.com/simon_warta/status/1786342207106019765)
18pub const BLS12_381_G2_GENERATOR: [u8; BLS12_381_G2_POINT_LEN] = [
19    147, 224, 43, 96, 82, 113, 159, 96, 125, 172, 211, 160, 136, 39, 79, 101, 89, 107, 208, 208,
20    153, 32, 182, 26, 181, 218, 97, 187, 220, 127, 80, 73, 51, 76, 241, 18, 19, 148, 93, 87, 229,
21    172, 125, 5, 93, 4, 43, 126, 2, 74, 162, 178, 240, 143, 10, 145, 38, 8, 5, 39, 45, 197, 16, 81,
22    198, 228, 122, 212, 250, 64, 59, 2, 180, 81, 11, 100, 122, 227, 209, 119, 11, 172, 3, 38, 168,
23    5, 187, 239, 212, 128, 86, 200, 193, 33, 189, 184,
24];