23 Commits

Author SHA1 Message Date
Vasco Santos
6b9516cb3c Revert "chore: update deps (#40)"
This reverts commit b6d5313a550555b435bd301d811af75397dc91e4.
2019-12-18 16:46:28 +00:00
Alan Shaw
b6d5313a55 chore: update deps (#40) 2019-12-18 10:04:20 +00:00
Alex Potsides
893a2c975c chore: downgrade peer-id to same version used by libp2p (#38) 2019-09-25 12:19:38 +02:00
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
Hugo Dias
7eeed87b10 fix: reduce bundle size (#28) 2019-01-10 11:16:03 +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
Vasco Santos
f95fef4ad2
chore: use lodash main dependency 2018-07-03 16:21:32 +02:00
Masahiro Saito
0065b0a49e chore: fix out of date npms (#21) 2018-06-30 00:38:19 +02: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
1b2664a902 refactor: keep the key info in the store 2017-12-11 14:26:48 +13:00
Richard Schneider
06917f7aba fix: lint errors 2017-12-10 17:37:16 +13:00
Richard Schneider
ff4f656248 fix: lint errors 2017-12-10 17:21:26 +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
3b8d05abb8 docs(keychain): add API documentation 2017-12-09 20:37:00 +13:00
Richard Schneider
8305d209b2 fix: error message 2017-12-08 14:46:38 +13:00
Richard Schneider
f49e753801 fix: return info on removed key #10 2017-12-08 14:45:02 +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