@libp2p/crypto 1.0.4 → 1.0.5
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.
|
@@ -30,7 +30,7 @@ export declare class Ed25519PrivateKey {
|
|
|
30
30
|
/**
|
|
31
31
|
* Exports the key into a password protected `format`
|
|
32
32
|
*/
|
|
33
|
-
export(password: string, format?: string): Promise<import("multiformats/bases/
|
|
33
|
+
export(password: string, format?: string): Promise<import("multiformats/dist/types/src/bases/interface.js").Multibase<"m">>;
|
|
34
34
|
}
|
|
35
35
|
export declare function unmarshalEd25519PrivateKey(bytes: Uint8Array): Ed25519PrivateKey;
|
|
36
36
|
export declare function unmarshalEd25519PublicKey(bytes: Uint8Array): Ed25519PublicKey;
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* The PrivateKey is encrypted via a password derived PBKDF2 key
|
|
4
4
|
* leveraging the aes-gcm cipher algorithm.
|
|
5
5
|
*/
|
|
6
|
-
export declare function exporter(privateKey: Uint8Array, password: string): Promise<import("multiformats/bases/
|
|
6
|
+
export declare function exporter(privateKey: Uint8Array, password: string): Promise<import("multiformats/dist/types/src/bases/interface.js").Multibase<"m">>;
|
|
7
7
|
//# sourceMappingURL=exporter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exporter.d.ts","sourceRoot":"","sources":["../../../src/keys/exporter.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,wBAAsB,QAAQ,CAAE,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"exporter.d.ts","sourceRoot":"","sources":["../../../src/keys/exporter.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,wBAAsB,QAAQ,CAAE,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,oFAIvE"}
|
|
@@ -28,7 +28,7 @@ export declare class Secp256k1PrivateKey {
|
|
|
28
28
|
/**
|
|
29
29
|
* Exports the key into a password protected `format`
|
|
30
30
|
*/
|
|
31
|
-
export(password: string, format?: string): Promise<import("multiformats/bases/
|
|
31
|
+
export(password: string, format?: string): Promise<import("multiformats/dist/types/src/bases/interface.js").Multibase<"m">>;
|
|
32
32
|
}
|
|
33
33
|
export declare function unmarshalSecp256k1PrivateKey(bytes: Uint8Array): Secp256k1PrivateKey;
|
|
34
34
|
export declare function unmarshalSecp256k1PublicKey(bytes: Uint8Array): Secp256k1PublicKey;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@libp2p/crypto",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "Crypto primitives for libp2p",
|
|
5
5
|
"license": "Apache-2.0 OR MIT",
|
|
6
6
|
"homepage": "https://github.com/libp2p/js-libp2p-crypto#readme",
|
|
@@ -182,13 +182,13 @@
|
|
|
182
182
|
"@noble/ed25519": "^1.6.0",
|
|
183
183
|
"@noble/secp256k1": "^1.5.4",
|
|
184
184
|
"err-code": "^3.0.1",
|
|
185
|
-
"multiformats": "^
|
|
185
|
+
"multiformats": "^10.0.0",
|
|
186
186
|
"node-forge": "^1.1.0",
|
|
187
187
|
"protons-runtime": "^3.1.0",
|
|
188
188
|
"uint8arrays": "^3.0.0"
|
|
189
189
|
},
|
|
190
190
|
"devDependencies": {
|
|
191
|
-
"@types/mocha": "^
|
|
191
|
+
"@types/mocha": "^10.0.0",
|
|
192
192
|
"aegir": "^37.0.12",
|
|
193
193
|
"benchmark": "^2.1.4",
|
|
194
194
|
"protons": "^5.1.0",
|