@local-hosting/did 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/dist/crypto/jwk-parity.d.ts +1 -1
- package/dist/crypto/jwk-parity.js +1 -1
- package/dist/crypto/keys.d.ts +1 -1
- package/dist/crypto/keys.js +1 -1
- package/dist/crypto/recipient-crypto.d.ts +1 -1
- package/dist/crypto/recipient-crypto.js +1 -1
- package/dist/jwt/jwt-utils.js +1 -1
- package/dist/methods/jwk/jwk-method.d.ts +1 -1
- package/dist/methods/key/key-extract.d.ts +1 -1
- package/dist/methods/key/key-extract.js +1 -1
- package/package.json +2 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Buffer } from 'buffer';
|
|
1
|
+
import { Buffer } from 'node:buffer';
|
|
2
2
|
import type { JWK } from '../types/crypto.js';
|
|
3
3
|
/** Build compressed secp256k1 public key bytes from JWK (requires `y` when parity matters). */
|
|
4
4
|
export declare function compressedPublicKeyFromJwk(jwk: JWK): Buffer;
|
package/dist/crypto/keys.d.ts
CHANGED
package/dist/crypto/keys.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Buffer } from 'buffer';
|
|
1
|
+
import { Buffer } from 'node:buffer';
|
|
2
2
|
import { PrivateKey, PublicKey } from './keys.js';
|
|
3
3
|
export declare function coercePrivateKeyInput(privateKey: PrivateKey | string): PrivateKey;
|
|
4
4
|
export declare function encryptForRecipient(message: string | Buffer, recipientPublicKey: PublicKey, senderPrivateKey?: PrivateKey): Promise<string>;
|
package/dist/jwt/jwt-utils.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Buffer } from 'buffer';
|
|
1
|
+
import { Buffer } from 'node:buffer';
|
|
2
2
|
import { PublicKey } from '../../crypto/keys.js';
|
|
3
3
|
export declare function publicKeyFromMultibaseBody(keyString: string): PublicKey;
|
|
4
4
|
export declare function extractPublicKeyFromDidKeySync(did: string): Buffer | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@local-hosting/did",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "DID Core–aligned secp256k1 methods (key, jwk, entity-signing), crypto, and JWT (ES256K)",
|
|
5
5
|
"license": "MPL-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -107,8 +107,7 @@
|
|
|
107
107
|
"@noble/curves": "2.4.0",
|
|
108
108
|
"@noble/hashes": "2.4.0",
|
|
109
109
|
"@scure/base": "2.4.0",
|
|
110
|
-
"@scure/bip39": "2.4.0"
|
|
111
|
-
"buffer": "^6.0.3"
|
|
110
|
+
"@scure/bip39": "2.4.0"
|
|
112
111
|
},
|
|
113
112
|
"peerDependencies": {
|
|
114
113
|
"@noble/hashes": "^2.4.0",
|