Skip to content

Commit

Permalink
chore: fix the constants import
Browse files Browse the repository at this point in the history
  • Loading branch information
duguorong009 committed Dec 18, 2023
1 parent dd18701 commit dc54a13
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions src/secp256k1/curve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ impl IsoSecp256k1 {
// Z = -11 (reference: <https://www.rfc-editor.org/rfc/rfc9380.html#name-suites-for-secp256k1>)
// 0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc24
// NOTE: This `Z` is the `SSWU_Z` of `Secp256k1` curve.
const SSWU_Z: Fp = Fp([
const SSWU_Z: Fp = Fp::from_raw([
0xfffffffefffffc24,
0xffffffffffffffff,
0xffffffffffffffff,
Expand All @@ -156,39 +156,39 @@ pub(crate) fn iso_map_secp256k1(rp: IsoSecp256k1) -> Secp256k1 {
const K: [[Fp; 4]; 5] = [
[Fp::ZERO; 4],
[
Fp([
Fp::from_raw([
0x8e38e38daaaaa8c7,
0x38e38e38e38e38e3,
0xe38e38e38e38e38e,
0x8e38e38e38e38e38,
]),
Fp([
Fp::from_raw([
0xdfff1044f17c6581,
0xd595d2fc0bf63b92,
0xb9f315cea7fd44c5,
0x7d3d4c80bc321d5,
]),
Fp([
Fp::from_raw([
0x4ecbd0b53d9dd262,
0xe4506144037c4031,
0xe2a413deca25caec,
0x534c328d23f234e6,
]),
Fp([
Fp::from_raw([
0x8e38e38daaaaa88c,
0x38e38e38e38e38e3,
0xe38e38e38e38e38e,
0x8e38e38e38e38e38,
]),
],
[
Fp([
Fp::from_raw([
0x9fe6b745781eb49b,
0x86cd409542f8487d,
0x9ca34ccbb7b640dd,
0xd35771193d94918a,
]),
Fp([
Fp::from_raw([
0xc52a56612a8c6d14,
0x06d36b641f5e41bb,
0xf7c4b2d51b542254,
Expand All @@ -198,45 +198,45 @@ pub(crate) fn iso_map_secp256k1(rp: IsoSecp256k1) -> Secp256k1 {
Fp::ZERO,
],
[
Fp([
Fp::from_raw([
0xa12f684b8e38e23c,
0x2f684bda12f684bd,
0x684bda12f684bda1,
0x4bda12f684bda12f,
]),
Fp([
Fp::from_raw([
0xdffc90fc201d71a3,
0x647ab046d686da6f,
0xa9d0a54b12a0a6d5,
0xc75e0c32d5cb7c0f,
]),
Fp([
Fp::from_raw([
0xa765e85a9ecee931,
0x722830a201be2018,
0x715209ef6512e576,
0x29a6194691f91a73,
]),
Fp([
Fp::from_raw([
0x84bda12f38e38d84,
0xbda12f684bda12f6,
0xa12f684bda12f684,
0x2f684bda12f684bd,
]),
],
[
Fp([
Fp::from_raw([
0xfffffffefffff93b,
0xffffffffffffffff,
0xffffffffffffffff,
0xffffffffffffffff,
]),
Fp([
Fp::from_raw([
0xdfb425d2685c2573,
0x9467c1bfc8e8d978,
0xd5e9e6632722c298,
0x7a06534bb8bdb49f,
]),
Fp([
Fp::from_raw([
0xa7bf8192bfd2a76f,
0x0a3d21162f0d6299,
0xf3a70c3fa8fe337e,
Expand Down

0 comments on commit dc54a13

Please sign in to comment.