Commit Graph

333 Commits

Author SHA1 Message Date
b5d94ecae7 chore: release version v0.17.1 v0.17.1 2019-10-25 13:56:54 +02:00
1f9c2ddadb chore: update contributors 2019-10-25 13:56:53 +02:00
d6d06a8404 chore: remove commitlint
chore: update deps

chore: add bundlesize to ci
2019-10-25 13:51:00 +02:00
8b8d0c1510 fix: jwk var naming 2019-10-25 13:51:00 +02:00
b998f63aec feat: use forge to convert jwk2forge 2019-10-25 13:51:00 +02:00
adc6eb478c test: add interop test 2019-10-25 13:51:00 +02:00
2c1bac5ce9 fix: padding error 2019-10-25 13:51:00 +02:00
027a5a9332 fix: use direct buffers instead of converting to hex 2019-10-25 13:51:00 +02:00
2c294b56ab fix: lint 2019-10-25 13:51:00 +02:00
487cd076fb refactor: cleanup 2019-10-25 13:51:00 +02:00
b8e2414420 fix: browser rsa enc/dec 2019-10-25 13:51:00 +02:00
9f747a173f feat: browser enc/dec 2019-10-25 13:51:00 +02:00
34c5f5c8f0 feat: add (rsa)pubKey.encrypt and (rsa)privKey.decrypt
nodeJS only for now
2019-10-25 13:51:00 +02:00
a008bc2fcb chore: update lead maintainer (#159) 2019-09-26 12:51:16 +02:00
b68060388f Merge pull request #157 from libp2p/fix/better-err-missing-webcrypto
fix: better error for missing web crypto
2019-08-13 15:28:33 +02:00
afe94ded6b docs: problem resolution 2019-07-22 11:21:24 +01:00
a5e05603ef fix: better error for missing web crypto
This PR simply detects missing web crypto and throws an error with an appropriate message.

This is a stepping stone that will help users understand the problem until we have time to do a refactor of this module and of all the modules that use it to enable optionally passing your own crypto implementation.

refs https://github.com/libp2p/js-libp2p-crypto/pull/149
refs https://github.com/libp2p/js-libp2p-crypto/pull/150
refs https://github.com/libp2p/js-libp2p-crypto/issues/105
refs https://github.com/ipfs/js-ipfs/issues/2153
refs https://github.com/ipfs/js-ipfs/issues/2017

License: MIT
Signed-off-by: Alan Shaw <alan@tableflip.io>
2019-07-22 11:21:22 +01:00
0b686d363c chore: add error codes (#155)
* chore: add error codes

* chore: create errors with new Error()

* fix: better error testin

* refactor: simplify random bytes error checks
2019-07-22 11:16:02 +01:00
2d15e717e4 chore: release version v0.17.0 v0.17.0 2019-07-11 15:23:54 +02:00
6775dbf670 chore: update contributors 2019-07-11 15:23:54 +02:00
4b09aae8ca fix(deps): update to ursa-optiona@0.10 (#156)
fix(deps): update to ursa-optiona@0.10
2019-07-11 15:22:40 +02:00
764d8bff3e chore(ci): run on node@12 2019-07-11 15:05:24 +02:00
26b6217041 fix(deps): update to ursa-optiona@0.10
This brings compatiability with node@12 for the native dependency
2019-07-11 15:04:08 +02:00
5500ac4a6e test: upgrade libp2p-crypto-secp256k1; ensure secp256k1 is tested (#151) 2019-07-10 23:32:51 +01:00
d675670ed9 fix: put optional args last for key export (#154)
BREAKING CHANGE: key export arguments are now swapped so that the optional format is last
2019-07-10 18:03:34 +01:00
ad7107233e feat: refactor to use async/await (#131)
BREAKING CHANGE: API refactored to use async/await

feat: WIP use async await
fix: passing tests
chore: update travis node.js versions
fix: skip ursa optional tests on windows
fix: benchmarks
docs: update docs
fix: remove broken and intested private key decrypt
chore: update deps
2019-07-10 17:15:26 +01:00
a521cd9b11 chore: release version v0.4.0 2019-07-10 11:45:02 +01:00
ed670209ad chore: update contributors 2019-07-10 11:45:02 +01:00
1974eb92be feat: use async await (#18)
BREAKING CHANGE: Callback support has been dropped in favor of async/await.

* feat: use async/await

This PR changes this module to remove callbacks and use async/await. The API is unchanged aside from the obvious removal of the `callback` parameter.

refs https://github.com/ipfs/js-ipfs/issues/1670

* fix: use latest multihashing-async as it is all promises now
2019-07-10 11:35:58 +01:00
fbd42385e3 chore: release version v0.3.1 2019-07-10 10:05:54 +01:00
9f01868c6c chore: update contributors 2019-07-10 10:05:53 +01:00
3bb84514d1 fix(unmarshal): provide only one arg to callback (#17) 2019-07-10 09:56:11 +01:00
5cd0e8cc1a fix: fix links in README (#148) 2019-07-04 14:31:43 +02:00
3f131d4a0a chore: add discourse badge (#15) 2019-04-18 19:30:06 +02:00
0ffe31821a chore: add discourse badge (#147) 2019-04-18 19:29:45 +02:00
7b3625888c chore: release version v0.16.1 v0.16.1 2019-02-26 09:28:41 +01:00
b7bce77ad5 chore: update contributors 2019-02-26 09:28:41 +01:00
c1f867bd9c chore: update badges for consistency across libp2p org 2019-02-26 09:25:15 +01:00
e3f02eb6f1 chore: updates libp2p-crypto-secp256k1 2019-02-26 09:24:40 +01:00
a0874389a9 chore(ci): use travis
This PR changes Jenkins to travis for CI. In addition, 2 dependencies were missing in the `package.json` and the `dep-check` was not passing.
2019-02-20 20:57:36 +01:00
ce22cf13f0 chore: release version v0.3.0 2019-02-20 13:29:17 +01:00
5fc391c8e0 chore: update contributors 2019-02-20 13:29:17 +01:00
53a2b590a9 chore(dev-deps): update libp2p-crypto 2019-02-20 13:28:46 +01:00
f4dbd62e49 feat: add id() method to Secp256k1PrivateKey
Feature parity with ed25519 and rsa
2019-02-20 13:23:05 +01:00
567d68c855 chore: release version v0.16.0 v0.16.0 2019-01-08 21:33:49 +01:00
af782c5906 chore: update contributors 2019-01-08 21:33:49 +01:00
f0593c9e6d chore: update deps 2019-01-08 21:33:02 +01:00
8d8294dc3f fix: clean up, bundle size reduction
BREAKING CHANGE: getRandomValues method exported from src/keys/rsa-browser.js and src/keys/rsa.js signature has changed from accepting an array to a number for random byte length
2019-01-08 21:29:42 +01:00
3a8bab9f44 chore: release version v0.2.3 2019-01-08 16:44:54 +01:00
c983edfdb9 chore: update contributors 2019-01-08 16:44:54 +01:00