@libp2p/keychain 0.6.2 → 1.0.1
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 -7
- package/dist/index.min.js +9 -9
- package/dist/src/errors.d.ts +0 -4
- package/dist/src/errors.d.ts.map +1 -1
- package/dist/src/errors.js +0 -4
- package/dist/src/errors.js.map +1 -1
- package/dist/src/index.d.ts +11 -9
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +39 -35
- package/dist/src/index.js.map +1 -1
- package/dist/src/util.d.ts +1 -1
- package/dist/src/util.d.ts.map +1 -1
- package/dist/typedoc-urls.json +6 -0
- package/package.json +2 -2
- package/src/errors.ts +1 -5
- package/src/index.ts +51 -45
- package/src/util.ts +1 -1
package/README.md
CHANGED
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
- [KeyInfo](#keyinfo)
|
|
16
16
|
- [Private key storage](#private-key-storage)
|
|
17
17
|
- [Physical storage](#physical-storage)
|
|
18
|
-
- [Cryptographic Message Syntax (CMS)](#cryptographic-message-syntax-cms)
|
|
19
18
|
- [API Docs](#api-docs)
|
|
20
19
|
- [License](#license)
|
|
21
20
|
- [Contribution](#contribution)
|
|
@@ -42,7 +41,6 @@ Loading this module through a script tag will make it's exports available as `Li
|
|
|
42
41
|
- Uses encrypted PKCS 8 for key storage
|
|
43
42
|
- Uses PBKDF2 for a "stetched" key encryption key
|
|
44
43
|
- Enforces NIST SP 800-131A and NIST SP 800-132
|
|
45
|
-
- Uses PKCS 7: CMS (aka RFC 5652) to provide cryptographically protected messages
|
|
46
44
|
- Delays reporting errors to slow down brute force attacks
|
|
47
45
|
|
|
48
46
|
### KeyInfo
|
|
@@ -80,11 +78,7 @@ const defaultOptions = {
|
|
|
80
78
|
|
|
81
79
|
### Physical storage
|
|
82
80
|
|
|
83
|
-
The actual physical storage of an encrypted key is left to implementations of [interface-datastore](https://github.com/ipfs/interface-datastore/). A key
|
|
84
|
-
|
|
85
|
-
### Cryptographic Message Syntax (CMS)
|
|
86
|
-
|
|
87
|
-
CMS, aka [PKCS #7](https://en.wikipedia.org/wiki/PKCS) and [RFC 5652](https://tools.ietf.org/html/rfc5652), describes an encapsulation syntax for data protection. It is used to digitally sign, digest, authenticate, or encrypt arbitrary message content. Basically, `cms.encrypt` creates a DER message that can be only be read by someone holding the private key.
|
|
81
|
+
The actual physical storage of an encrypted key is left to implementations of [interface-datastore](https://github.com/ipfs/interface-datastore/). A key benefit is that now the key chain can be used in browser with the [js-datastore-level](https://github.com/ipfs/js-datastore-level) implementation.
|
|
88
82
|
|
|
89
83
|
## API Docs
|
|
90
84
|
|