15 Commits

Author SHA1 Message Date
Jacob Heun
dda315a9c8 refactor: use async/await instead of callbacks (#37)
BREAKING CHANGE: The api now uses async/await instead of callbacks.

Co-Authored-By: Vasco Santos <vasco.santos@moxy.studio>
2019-08-16 12:12:47 +01:00
Alex Potsides
7051b9c530 fix: throw errors with correct stack trace (#35)
The stack trace of thrown error objects is created when the object is
instantiated - if we defer to a function to create the error we end
up with misleading stack traces.

This PR instantiates errors where errors occur and also uses the
`err-code` module to add a `.code` property so we don't have to depend
on string error messages for the type of error that was thrown.
2019-06-13 14:35:12 +01:00
Vasco Santos
f71a6bbb0a Revert "feat: adds support for ed25199 and secp256k1 (#31)"
This reverts commit 9eb11f42452b4266db0c19de3310e809a0087669.
2019-03-14 22:26:07 +00:00
Alberto Elias
9eb11f4245 feat: adds support for ed25199 and secp256k1 (#31) 2019-02-25 11:04:54 +00:00
Alan Shaw
8dfaab1af0 fix: validate createKey params properly (#26)
License: MIT
Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
2018-09-18 12:48:58 +01:00
Richard Schneider
5560669fc9 CMS - PKCS #7 (#19)
CMS - PKCS #7
2018-01-28 22:34:55 -08:00
Richard Schneider
89a451c147 feat: generate unique options for a key chain (#20) 2017-12-28 08:48:32 +00:00
Richard Schneider
c1627a99e7 feat: use libp2p-crypto (#18)
* test: openssl interop is now the responsibility of libp2p-crypto

* feat: use libp2p-crypto, not node-forge, for key management

* fix: use libp2p-crypto.pbkdf, not node-forge

* fix: do not ship CMS

This removes all depencies on node-forge

* test: update dependencies

* test: remove dead code
2017-12-20 13:43:54 +00:00
Richard Schneider
e78b2483ae test: key name comparision 2017-12-17 12:43:54 +13:00
Richard Schneider
1b2664a902 refactor: keep the key info in the store 2017-12-11 14:26:48 +13:00
Richard Schneider
f71d3a6521 fix: maps an IPFS hash name to its forge equivalent
Fixes #12
2017-12-10 17:19:20 +13:00
Richard Schneider
f49e753801 fix: return info on removed key #10 2017-12-08 14:45:02 +13:00
Richard Schneider
98ba68ac82 test: needs more time to generate RSA key 2017-12-07 00:24:39 +13:00
Richard Schneider
7c44c91788 fix: more linting 2017-12-07 00:16:38 +13:00
Richard Schneider
1a96ae8cb7 feat: move bits from https://github.com/richardschneider/ipfs-encryption 2017-12-06 22:56:09 +13:00