Skip to content

Commit

Permalink
Add support for secp160r1 courve
Browse files Browse the repository at this point in the history
In addition to change in bn.js PR: indutny/bn.js#267
  • Loading branch information
fmorett authored Feb 22, 2021
1 parent 43ac7f2 commit 44fd73a
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions lib/elliptic/curves.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,3 +204,20 @@ defineCurve('secp256k1', {
pre,
],
});

defineCurve('secp160r1', {
type: 'short',
prime: 'r160',
p: 'FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7FFFFFFF',
a: 'FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7FFFFFFC',
b: '1C97BEFC54BD7A8B65ACF89F81D4D4ADC565FA45',
n: '0100000000000000000001F4C8F927AED3CA752257',
h: '1',
hash: hash.sha256,

gRed: false,
g: [
'4A96B5688EF573284664698968C38BB913CBFC82',
'23A628553168947D59DCC912042351377AC5FB32',
],
});

0 comments on commit 44fd73a

Please sign in to comment.