| 1 | //go:build jwx_es256k |
| 2 | |
| 3 | package jwa |
| 4 | |
| 5 | var secp256k1Algorithm = NewEllipticCurveAlgorithm("secp256k1") |
| 6 | |
| 7 | // This constant is only available if compiled with jwx_es256k build tag |
| 8 | func Secp256k1() EllipticCurveAlgorithm { |
| 9 | return secp256k1Algorithm |
| 10 | } |
| 11 | |
| 12 | func init() { |
| 13 | RegisterEllipticCurveAlgorithm(secp256k1Algorithm) |
| 14 | } |