Add constant of the prime of the curve field.
This commit is contained in:
parent
8c517e0afa
commit
4b410fc202
|
@ -34,6 +34,14 @@ pub const MAX_SIGNATURE_SIZE: usize = 72;
|
||||||
/// The maximum size of a compact signature
|
/// The maximum size of a compact signature
|
||||||
pub const COMPACT_SIGNATURE_SIZE: usize = 64;
|
pub const COMPACT_SIGNATURE_SIZE: usize = 64;
|
||||||
|
|
||||||
|
/// The Prime for the secp256k1 field element.
|
||||||
|
pub const FIELD_SIZE: [u8; 32] = [
|
||||||
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||||
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||||
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||||
|
0xff, 0xff, 0xff, 0xfe, 0xff, 0xff, 0xfc, 0x2f
|
||||||
|
];
|
||||||
|
|
||||||
/// The order of the secp256k1 curve
|
/// The order of the secp256k1 curve
|
||||||
pub const CURVE_ORDER: [u8; 32] = [
|
pub const CURVE_ORDER: [u8; 32] = [
|
||||||
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||||
|
|
Loading…
Reference in New Issue