@ -24,8 +24,7 @@
# include "secp256k1.h"
# include "secp256k1.h"
const bignum256 prime256k1 = {
const bignum256 prime256k1 = {
. val = { 0x3ffffc2f , 0x3ffffffb , 0x3fffffff , 0x3fffffff , 0x3fffffff , 0x3fffffff , 0x3fffffff , 0x3fffffff , 0xffff }
. val = { 0x3ffffc2f , 0x3ffffffb , 0x3fffffff , 0x3fffffff , 0x3fffffff , 0x3fffffff , 0x3fffffff , 0x3fffffff , 0xffff } } ;
} ;
const curve_point G256k1 = {
const curve_point G256k1 = {
. x = { . val = { 0x16f81798 , 0x27ca056c , 0x1ce28d95 , 0x26ff36cb , 0x70b0702 , 0x18a573a , 0xbbac55a , 0x199fbe77 , 0x79be } } ,
. x = { . val = { 0x16f81798 , 0x27ca056c , 0x1ce28d95 , 0x26ff36cb , 0x70b0702 , 0x18a573a , 0xbbac55a , 0x199fbe77 , 0x79be } } ,
@ -34,6 +33,9 @@ const curve_point G256k1 = {
const bignum256 order256k1 = {
const bignum256 order256k1 = {
. val = { 0x10364141 , 0x3f497a33 , 0x348a03bb , 0x2bb739ab , 0x3ffffeba , 0x3fffffff , 0x3fffffff , 0x3fffffff , 0xffff } } ;
. val = { 0x10364141 , 0x3f497a33 , 0x348a03bb , 0x2bb739ab , 0x3ffffeba , 0x3fffffff , 0x3fffffff , 0x3fffffff , 0xffff } } ;
const bignum256 order256k1_half = {
. val = { 0x281b20a0 , 0x3fa4bd19 , 0x3a4501dd , 0x15db9cd5 , 0x3fffff5d , 0x3fffffff , 0x3fffffff , 0x3fffffff , 0x00007fff } } ;
const bignum256 three_over_two256k1 = {
const bignum256 three_over_two256k1 = {
. val = { 0x3ffffe19 , 0x3ffffffd , 0x3fffffff , 0x3fffffff , 0x3fffffff , 0x3fffffff , 0x3fffffff , 0x3fffffff , 0x7fff } } ;
. val = { 0x3ffffe19 , 0x3ffffffd , 0x3fffffff , 0x3fffffff , 0x3fffffff , 0x3fffffff , 0x3fffffff , 0x3fffffff , 0x7fff } } ;