@libp2p/keychain 5.2.9 → 6.0.0-55b7e5fea
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/README.md +1 -3
- package/dist/index.min.js +11 -12
- package/dist/index.min.js.map +4 -4
- package/dist/src/constants.d.ts +12 -0
- package/dist/src/constants.d.ts.map +1 -0
- package/dist/src/constants.js +12 -0
- package/dist/src/constants.js.map +1 -0
- package/dist/src/index.d.ts +0 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +0 -2
- package/dist/src/index.js.map +1 -1
- package/dist/src/keychain.d.ts +1 -10
- package/dist/src/keychain.d.ts.map +1 -1
- package/dist/src/keychain.js +17 -14
- package/dist/src/keychain.js.map +1 -1
- package/dist/src/utils/export.js +2 -2
- package/dist/src/utils/export.js.map +1 -1
- package/dist/src/utils/import.js +2 -2
- package/dist/src/utils/import.js.map +1 -1
- package/package.json +9 -10
- package/src/constants.ts +11 -0
- package/src/index.ts +0 -2
- package/src/keychain.ts +20 -16
- package/src/utils/export.ts +2 -2
- package/src/utils/import.ts +2 -2
- package/dist/typedoc-urls.json +0 -14
package/README.md
CHANGED
|
@@ -45,7 +45,7 @@ The key management and naming service API all return a `KeyInfo` object. The `i
|
|
|
45
45
|
|
|
46
46
|
The **key id** is the SHA-256 [multihash](https://github.com/multiformats/multihash) of its public key.
|
|
47
47
|
|
|
48
|
-
The *public key* is a [protobuf encoding](https://github.com/libp2p/js-libp2p/blob/
|
|
48
|
+
The *public key* is a [protobuf encoding](https://github.com/libp2p/js-libp2p/blob/958761163edfc7b1a6231041b199737d72fd6424/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).
|
|
49
49
|
|
|
50
50
|
## Private key storage
|
|
51
51
|
|
|
@@ -65,8 +65,6 @@ const defaultOptions = {
|
|
|
65
65
|
}
|
|
66
66
|
```
|
|
67
67
|
|
|
68
|
-

|
|
69
|
-
|
|
70
68
|
## Physical storage
|
|
71
69
|
|
|
72
70
|
The actual physical storage of an encrypted key is left to implementations of [interface-datastore](https://github.com/ipfs/interface-datastore/).
|