@libp2p/keychain 3.0.8-effcfaa8e → 4.0.0-06e6d235f
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 +5 -5
- package/dist/index.min.js +9 -9
- package/dist/src/index.d.ts +99 -76
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +6 -494
- package/dist/src/index.js.map +1 -1
- package/dist/src/keychain.d.ts +111 -0
- package/dist/src/keychain.d.ts.map +1 -0
- package/dist/src/keychain.js +495 -0
- package/dist/src/keychain.js.map +1 -0
- package/package.json +12 -8
- package/src/index.ts +105 -516
- package/src/keychain.ts +561 -0
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
[](http://libp2p.io/)
|
|
2
2
|
[](https://discuss.libp2p.io)
|
|
3
3
|
[](https://codecov.io/gh/libp2p/js-libp2p)
|
|
4
|
-
[](https://github.com/libp2p/js-libp2p/actions/workflows/main.yml?query=branch%3Amain)
|
|
5
5
|
|
|
6
6
|
> Key management and cryptographically protected messages
|
|
7
7
|
|
|
@@ -28,7 +28,7 @@ The key management and naming service API all return a `KeyInfo` object. The `i
|
|
|
28
28
|
|
|
29
29
|
The **key id** is the SHA-256 [multihash](https://github.com/multiformats/multihash) of its public key.
|
|
30
30
|
|
|
31
|
-
The *public key* is a [protobuf encoding](https://github.com/libp2p/js-libp2p
|
|
31
|
+
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).
|
|
32
32
|
|
|
33
33
|
## Private key storage
|
|
34
34
|
|
|
@@ -70,17 +70,17 @@ Loading this module through a script tag will make it's exports available as `Li
|
|
|
70
70
|
<script src="https://unpkg.com/@libp2p/keychain/dist/index.min.js"></script>
|
|
71
71
|
```
|
|
72
72
|
|
|
73
|
-
|
|
73
|
+
# API Docs
|
|
74
74
|
|
|
75
75
|
- <https://libp2p.github.io/js-libp2p/modules/_libp2p_keychain.html>
|
|
76
76
|
|
|
77
|
-
|
|
77
|
+
# License
|
|
78
78
|
|
|
79
79
|
Licensed under either of
|
|
80
80
|
|
|
81
81
|
- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)
|
|
82
82
|
- MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>)
|
|
83
83
|
|
|
84
|
-
|
|
84
|
+
# Contribution
|
|
85
85
|
|
|
86
86
|
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
|