@libp2p/keychain 6.0.10 → 6.0.11-2a3e54738

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.
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Default options for key derivation
3
3
  *
4
- * @see https://cryptosense.com/parametesr-choice-for-pbkdf2/
4
+ * @see https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html#pbkdf2
5
5
  */
6
6
  export declare const DEK_INIT: {
7
7
  keyLength: number;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Default options for key derivation
3
3
  *
4
- * @see https://cryptosense.com/parametesr-choice-for-pbkdf2/
4
+ * @see https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html#pbkdf2
5
5
  */
6
6
  export const DEK_INIT = {
7
7
  keyLength: 512 / 8,
@@ -22,7 +22,7 @@
22
22
  *
23
23
  * The **key id** is the SHA-256 [multihash](https://github.com/multiformats/multihash) of its public key.
24
24
  *
25
- * The *public key* is a [protobuf encoding](https://github.com/libp2p/js-libp2p/blob/main/packages/crypto/src/keys/keys.proto.js) containing a type and the [DER encoding](https://en.wikipedia.org/wiki/X.690) of the PKCS [SubjectPublicKeyInfo](https://www.ietf.org/rfc/rfc3279.txt).
25
+ * The *public key* is a [protobuf encoding](https://github.com/libp2p/js-libp2p/blob/main/packages/crypto/src/keys/keys.proto) containing a type and the [DER encoding](https://en.wikipedia.org/wiki/X.690) of the PKCS [SubjectPublicKeyInfo](https://www.ietf.org/rfc/rfc3279.txt).
26
26
  *
27
27
  * ## Private key storage
28
28
  *
@@ -32,7 +32,7 @@
32
32
  *
33
33
  * ```TypeScript
34
34
  * const defaultOptions = {
35
- * // See https://cryptosense.com/parameter-choice-for-pbkdf2/
35
+ * // See https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html#pbkdf2
36
36
  * dek: {
37
37
  * keyLength: 512 / 8,
38
38
  * iterationCount: 1000,
package/dist/src/index.js CHANGED
@@ -22,7 +22,7 @@
22
22
  *
23
23
  * The **key id** is the SHA-256 [multihash](https://github.com/multiformats/multihash) of its public key.
24
24
  *
25
- * The *public key* is a [protobuf encoding](https://github.com/libp2p/js-libp2p/blob/main/packages/crypto/src/keys/keys.proto.js) containing a type and the [DER encoding](https://en.wikipedia.org/wiki/X.690) of the PKCS [SubjectPublicKeyInfo](https://www.ietf.org/rfc/rfc3279.txt).
25
+ * The *public key* is a [protobuf encoding](https://github.com/libp2p/js-libp2p/blob/main/packages/crypto/src/keys/keys.proto) containing a type and the [DER encoding](https://en.wikipedia.org/wiki/X.690) of the PKCS [SubjectPublicKeyInfo](https://www.ietf.org/rfc/rfc3279.txt).
26
26
  *
27
27
  * ## Private key storage
28
28
  *
@@ -32,7 +32,7 @@
32
32
  *
33
33
  * ```TypeScript
34
34
  * const defaultOptions = {
35
- * // See https://cryptosense.com/parameter-choice-for-pbkdf2/
35
+ * // See https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html#pbkdf2
36
36
  * dek: {
37
37
  * keyLength: 512 / 8,
38
38
  * iterationCount: 1000,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@libp2p/keychain",
3
- "version": "6.0.10",
3
+ "version": "6.0.11-2a3e54738",
4
4
  "description": "Key management and cryptographically protected messages",
5
5
  "license": "Apache-2.0 OR MIT",
6
6
  "homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/keychain#readme",
@@ -52,8 +52,8 @@
52
52
  "test:electron-main": "aegir test -t electron-main"
53
53
  },
54
54
  "dependencies": {
55
- "@libp2p/crypto": "^5.1.13",
56
- "@libp2p/interface": "^3.1.0",
55
+ "@libp2p/crypto": "5.1.14-2a3e54738",
56
+ "@libp2p/interface": "3.1.1-2a3e54738",
57
57
  "@noble/hashes": "^2.0.1",
58
58
  "asn1js": "^3.0.6",
59
59
  "interface-datastore": "^9.0.1",
@@ -62,7 +62,7 @@
62
62
  "uint8arrays": "^5.1.0"
63
63
  },
64
64
  "devDependencies": {
65
- "@libp2p/logger": "^6.2.2",
65
+ "@libp2p/logger": "6.2.3-2a3e54738",
66
66
  "aegir": "^47.0.22",
67
67
  "datastore-core": "^11.0.1"
68
68
  },
package/src/constants.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Default options for key derivation
3
3
  *
4
- * @see https://cryptosense.com/parametesr-choice-for-pbkdf2/
4
+ * @see https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html#pbkdf2
5
5
  */
6
6
  export const DEK_INIT = {
7
7
  keyLength: 512 / 8,
package/src/index.ts CHANGED
@@ -22,7 +22,7 @@
22
22
  *
23
23
  * The **key id** is the SHA-256 [multihash](https://github.com/multiformats/multihash) of its public key.
24
24
  *
25
- * The *public key* is a [protobuf encoding](https://github.com/libp2p/js-libp2p/blob/main/packages/crypto/src/keys/keys.proto.js) containing a type and the [DER encoding](https://en.wikipedia.org/wiki/X.690) of the PKCS [SubjectPublicKeyInfo](https://www.ietf.org/rfc/rfc3279.txt).
25
+ * The *public key* is a [protobuf encoding](https://github.com/libp2p/js-libp2p/blob/main/packages/crypto/src/keys/keys.proto) containing a type and the [DER encoding](https://en.wikipedia.org/wiki/X.690) of the PKCS [SubjectPublicKeyInfo](https://www.ietf.org/rfc/rfc3279.txt).
26
26
  *
27
27
  * ## Private key storage
28
28
  *
@@ -32,7 +32,7 @@
32
32
  *
33
33
  * ```TypeScript
34
34
  * const defaultOptions = {
35
- * // See https://cryptosense.com/parameter-choice-for-pbkdf2/
35
+ * // See https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html#pbkdf2
36
36
  * dek: {
37
37
  * keyLength: 512 / 8,
38
38
  * iterationCount: 1000,
@@ -1,14 +0,0 @@
1
- {
2
- "DEKConfig": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_keychain.DEKConfig.html",
3
- ".:DEKConfig": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_keychain.DEKConfig.html",
4
- "Keychain": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_keychain.Keychain.html",
5
- ".:Keychain": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_keychain.Keychain.html",
6
- "KeychainComponents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_keychain.KeychainComponents.html",
7
- ".:KeychainComponents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_keychain.KeychainComponents.html",
8
- "KeychainInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_keychain.KeychainInit.html",
9
- ".:KeychainInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_keychain.KeychainInit.html",
10
- "KeyInfo": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_keychain.KeyInfo.html",
11
- ".:KeyInfo": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_keychain.KeyInfo.html",
12
- "keychain": "https://libp2p.github.io/js-libp2p/functions/_libp2p_keychain.keychain.html",
13
- ".:keychain": "https://libp2p.github.io/js-libp2p/functions/_libp2p_keychain.keychain.html"
14
- }