We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a015f16 commit 94052b9Copy full SHA for 94052b9
jwk/lib/jwk.dart
@@ -369,6 +369,7 @@ class Jwk {
369
case 'EC':
370
final type = const <String, KeyPairType>{
371
'P-256': KeyPairType.p256,
372
+ 'secp256k1': KeyPairType.p256k,
373
'P-384': KeyPairType.p384,
374
'P-521': KeyPairType.p521,
375
}[crv];
@@ -430,6 +431,7 @@ class Jwk {
430
431
432
433
434
435
436
437
@@ -560,6 +562,7 @@ class Jwk {
560
562
if (keyPair is EcKeyPairData) {
561
563
final crv = const <KeyPairType, String>{
564
KeyPairType.p256: 'P-256',
565
+ KeyPairType.p256k: 'secp256k1',
566
KeyPairType.p384: 'P-384',
567
KeyPairType.p521: 'P-521',
568
}[keyPair.type];
0 commit comments