mirror of
https://github.com/danbulant/jose
synced 2026-05-24 20:41:46 +00:00
chore: add deprecation warning for P-256K
This commit is contained in:
parent
5128d3f7f6
commit
11ceb4ef5d
1 changed files with 7 additions and 0 deletions
|
|
@ -1,6 +1,13 @@
|
|||
const { deprecate } = require('util')
|
||||
|
||||
const deprecation = deprecate(() => {}, '"P-256K" EC curve name is deprecated')
|
||||
|
||||
module.exports = {
|
||||
name: 'secp256k1',
|
||||
rename (value) {
|
||||
if (value !== 'secp256k1') {
|
||||
deprecation()
|
||||
}
|
||||
module.exports.name = value
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue