From 2acce6bbebd6afbd6ce78da901d248060b328045 Mon Sep 17 00:00:00 2001 From: Kai Peacock Date: Wed, 21 Feb 2024 10:57:14 -0800 Subject: [PATCH] feat: adds fromPem method for identity-secp256k1 (#816) * feat: adds pemToSecretKey * feat: adds `fromPem` method for `identity-secp256k1` * wip * feat: check for ASN.1 OID before returning private key * rebuilding package-lock * increasing size limit * Update docs/generated/changelog.html * Update docs/generated/changelog.html --- docs/generated/changelog.html | 4 +- package-lock.json | 3262 +++++++++++------ package.json | 2 +- packages/identity-secp256k1/package.json | 1 + packages/identity-secp256k1/src/pem.test.ts | 77 + packages/identity-secp256k1/src/pem.ts | 40 + .../identity-secp256k1/src/secp256k1.test.ts | 12 + packages/identity-secp256k1/src/secp256k1.ts | 11 + 8 files changed, 2242 insertions(+), 1167 deletions(-) mode change 100755 => 100644 package-lock.json create mode 100644 packages/identity-secp256k1/src/pem.test.ts create mode 100644 packages/identity-secp256k1/src/pem.ts diff --git a/docs/generated/changelog.html b/docs/generated/changelog.html index edf9696a..aee9915d 100644 --- a/docs/generated/changelog.html +++ b/docs/generated/changelog.html @@ -11,7 +11,9 @@

Agent-JS Changelog

Version x.x.x

- +

Version 1.0.1