Nadim Kobeissi
1c16dd3dec
fix: ed25519 PeerID generation ( #186 )
...
* Fix Ed25519 PeerID generation
This commit pushes further fixes to the generation of Ed25519 peer IDs,
building upon the discussion in ipfs/js-ipfs#3591 and the subsequent
pull request libp2p/js-libp2p-crypto#185 .
The purpose of this new pull request is to harmonize the encoding of
PeerIDs for Ed25519 keys such that the same new format is used
everywhere: peer IDs when assigned upon key generation, peer IDs when
shown via key listing, as well as the peer IDs displayed as IPNS names
when the key is used as the basis for an IPNS record.
Concretely, this changes the peer ID representation of Ed25519 keys from
the `Qm...` format to the newer `1...` format.
The accompanying test has been modified accordingly.
* Satisfy linter
2021-03-17 19:01:53 +01:00
Jacob Heun
4e5a05a12c
chore: release version v0.19.1
v0.19.1
2021-03-15 19:13:28 +01:00
Jacob Heun
c067685f45
chore: update contributors
2021-03-15 19:13:28 +01:00
Nadim Kobeissi
bc337698b6
fix: ed25519 key ID generation
...
As discussed here: https://github.com/ipfs/js-ipfs/issues/3591
Satisfy linter
test: actually verify ids
2021-03-15 19:02:31 +01:00
Jacob Heun
b07978dbea
chore: release version v0.19.0
v0.19.0
2021-01-15 14:50:47 +01:00
Jacob Heun
0cc270dc4a
chore: update contributors
2021-01-15 14:50:46 +01:00
dependabot[bot]
b28c232e22
chore(deps): bump node-forge from 0.9.2 to 0.10.0 ( #182 )
...
Bumps [node-forge](https://github.com/digitalbazaar/forge ) from 0.9.2 to 0.10.0.
- [Release notes](https://github.com/digitalbazaar/forge/releases )
- [Changelog](https://github.com/digitalbazaar/forge/blob/master/CHANGELOG.md )
- [Commits](https://github.com/digitalbazaar/forge/compare/0.9.2...0.10.0 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-16 12:55:06 +01:00
Cayman
04a4e81317
chore: remove unused type ( #183 )
2020-12-16 12:53:22 +01:00
Jacob Heun
29df292338
chore: release version v0.18.0
v0.18.0
2020-08-07 17:18:25 +02:00
Jacob Heun
253cca2799
chore: update contributors
2020-08-07 17:18:24 +02:00
Jacob Heun
afcffc8115
fix: remove rendundant public key ( #181 )
...
* fix: remove rendundant public key
BREAKING CHANGE: The private ed25519 key will no longer include the redundant public key
* chore: fix lint
2020-08-07 17:16:00 +02:00
Alex Potsides
a0f387aeab
fix: replace node buffers with uint8arrays ( #180 )
...
* fix: replace node buffers with uint8arrays
All usage of node buffers have been replaced with uint8arrays.
BREAKING CHANGES:
- Where node Buffers were returned, now Uint8Arrays are
* chore: remove commented code
2020-08-07 16:23:02 +02:00
Jacob Heun
8b3dc56dc2
chore: release version v0.17.9
v0.17.9
2020-08-05 17:18:44 +02:00
Jacob Heun
7888afada6
chore: update contributors
2020-08-05 17:18:43 +02:00
Jacob Heun
7273739f04
feat: add exporting/importing of non rsa keys in libp2p-key format ( #179 )
...
* feat: add exporting/importing of ed25519 keys in libp2p-key format
* feat: add libp2p-key export/import support for rsa and secp keys
* chore: dep bumps
* chore: update aegir
* refactor: import and export base64 strings
* refactor: simplify api for now
* chore: fix lint
* refactor: remove extraneous param
* refactor: clean up
* fix: review patches
2020-08-05 17:14:12 +02:00
Jacob Heun
609297be65
chore: release version v0.17.8
v0.17.8
2020-07-20 15:23:49 +02:00
Jacob Heun
89a297793d
chore: update contributors
2020-07-20 15:23:49 +02:00
Jacob Heun
32fae9b505
chore: fix lint
2020-07-20 15:13:46 +02:00
Jacob Heun
c2dd0a535d
chore(types): fix typing
2020-07-20 15:13:46 +02:00
Jacob Heun
2f18a077b4
fix: go ed25519 interop
...
fixes https://github.com/libp2p/js-libp2p-crypto/issues/175
2020-07-20 15:13:46 +02:00
Jacob Heun
4aa77a6b12
chore: release version v0.17.7
v0.17.7
2020-06-09 13:00:09 +02:00
Jacob Heun
210dd27479
chore: update contributors
2020-06-09 13:00:09 +02:00
Alex Potsides
437a76fbe3
chore: update node forge version
...
Use `^` so it's the same as libp2p
2020-06-09 12:57:27 +02:00
dependabot-preview[bot]
75d250c876
chore(deps-dev): bump aegir from 21.10.2 to 22.0.0 ( #174 )
...
Bumps [aegir](https://github.com/ipfs/aegir ) from 21.10.2 to 22.0.0.
- [Release notes](https://github.com/ipfs/aegir/releases )
- [Changelog](https://github.com/ipfs/aegir/blob/master/CHANGELOG.md )
- [Commits](https://github.com/ipfs/aegir/compare/v21.10.2...v22.0.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-05-08 10:54:15 +02:00
Jacob Heun
e761427153
chore: release version v0.17.6
v0.17.6
2020-04-07 16:15:48 +02:00
Jacob Heun
90d51ee8c7
chore: update contributors
2020-04-07 16:15:47 +02:00
Jacob Heun
ccda21fe91
Merge pull request #173 from ChainSafe/cayman/secp-migration
...
Integrate libp2p-crypto-secp256k1
2020-04-07 15:55:14 +02:00
Cayman
206999ce11
chore: fix secp256k1 references in readme
2020-04-06 15:44:36 -05:00
Cayman
3272688489
chore: integrate libp2p-crypto-secp256k1
2020-04-06 12:46:39 -05:00
Cayman
456a365378
Merge branch 'cayman/secp' into cayman/secp-migration
2020-04-06 11:56:27 -05:00
Cayman
42bd594068
chore: move files to secp256k1 directory
2020-04-06 11:55:35 -05:00
dependabot-preview[bot]
ab12e6f068
chore(deps-dev): bump @types/sinon from 7.5.2 to 9.0.0 ( #172 )
...
Bumps [@types/sinon](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/sinon ) from 7.5.2 to 9.0.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/sinon )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-04-01 16:47:39 +02:00
Jacob Heun
6bbf12c169
chore: release version v0.4.3
2020-03-25 12:59:04 +01:00
Jacob Heun
a68fc2e98d
chore: update contributors
2020-03-25 12:59:03 +01:00
dependabot-preview[bot]
d73a0ca52e
chore(deps): bump multibase from 0.6.1 to 0.7.0 ( #26 )
...
Bumps [multibase](https://github.com/multiformats/js-multibase ) from 0.6.1 to 0.7.0.
- [Release notes](https://github.com/multiformats/js-multibase/releases )
- [Changelog](https://github.com/multiformats/js-multibase/blob/master/CHANGELOG.md )
- [Commits](https://github.com/multiformats/js-multibase/compare/v0.6.1...v0.7.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-25 12:55:12 +01:00
Jacob Heun
1b0fac84a8
chore: release version v0.17.5
v0.17.5
2020-03-24 14:27:31 +01:00
Jacob Heun
efaafa9c06
chore: update contributors
2020-03-24 14:27:30 +01:00
dependabot-preview[bot]
88b3018c9c
chore(deps): bump multibase from 0.6.1 to 0.7.0 ( #171 )
...
Bumps [multibase](https://github.com/multiformats/js-multibase ) from 0.6.1 to 0.7.0.
- [Release notes](https://github.com/multiformats/js-multibase/releases )
- [Changelog](https://github.com/multiformats/js-multibase/blob/master/CHANGELOG.md )
- [Commits](https://github.com/multiformats/js-multibase/compare/v0.6.1...v0.7.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-24 14:11:07 +01:00
Jacob Heun
9aacb478c4
chore: release version v0.17.4
v0.17.4
2020-03-23 17:06:35 +01:00
Jacob Heun
269d169f7c
chore: update contributors
2020-03-23 17:06:35 +01:00
Hugo Dias
c956d1ad2a
fix: add buffer, cleanup, reduce size ( #170 )
...
* fix: add buffer, cleanup, reduce size
- add buffer related to https://github.com/ipfs/js-ipfs/issues/2924
- remove unnecessary eslint ignore
- remove tweelnacl and use node-forge
- remove browserify-aes and use node-forge
- use multibase to encode b58
- require only sha256 from multihashing
- reduce bundle size
after all the deps here https://github.com/ipfs/js-ipfs/issues/2924 are merged libp2p-crypto will be able to be bundle with `node: false` 🎉
* fix: reduce bundle size
* fix: use new secp
* fix: bundle size
* chore: update secp
Co-Authored-By: Jacob Heun <jacobheun@gmail.com>
Co-authored-by: Jacob Heun <jacobheun@gmail.com>
2020-03-23 16:55:35 +01:00
Jacob Heun
9b4231eb75
chore: release version v0.4.2
2020-03-17 12:11:28 +01:00
Jacob Heun
fdab19b7d9
chore: update contributors
2020-03-17 12:11:28 +01:00
Hugo Dias
35f196ea4d
fix: add buffer and update deps ( #25 )
...
* fix: add buffer and update deps
update secp256k1 dep and fix code
use multibase to encode b58
avoid un-necessary circular dependency no libp2p-crypto
use only sha256 from multihashing-async
* Update src/crypto.js
Co-Authored-By: Jacob Heun <jacobheun@gmail.com>
* chore: remove commitlint from CI
Co-authored-by: Jacob Heun <jacobheun@gmail.com>
2020-03-17 11:59:23 +01:00
Jacob Heun
d3601fa936
chore: release version v0.17.3
v0.17.3
2020-02-26 17:21:45 +01:00
Jacob Heun
f01e3812e9
chore: update contributors
2020-02-26 17:21:45 +01:00
Alan Shaw
00477e3bcb
perf: remove asn1.js and use node-forge ( #166 )
...
* perf: remove asn1.js from rsa
* fix: tweaks
* fix: it works, but I do not know 100% why
* chore: remove asn1.js
* fix: ensure jwk params encoded as uint
* fix: util tests
* fix: zero pad base64urlToBuffer
* fix: more zero pad
* test: add round trip test
* test: base64url to Buffer with padding
2020-02-26 17:16:32 +01:00
dependabot-preview[bot]
0f4c533dfa
chore(deps-dev): bump sinon from 8.1.1 to 9.0.0
...
Bumps [sinon](https://github.com/sinonjs/sinon ) from 8.1.1 to 9.0.0.
- [Release notes](https://github.com/sinonjs/sinon/releases )
- [Changelog](https://github.com/sinonjs/sinon/blob/master/CHANGELOG.md )
- [Commits](https://github.com/sinonjs/sinon/compare/v8.1.1...v9.0.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-19 08:27:36 -05:00
dependabot-preview[bot]
d566e7ef3b
chore(deps-dev): bump @types/mocha from 5.2.7 to 7.0.1
...
Bumps [@types/mocha](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/mocha ) from 5.2.7 to 7.0.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/mocha )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-18 08:31:56 -05:00
dependabot-preview[bot]
78e2ddd2bd
chore(deps-dev): bump sinon from 7.5.0 to 8.1.1
...
Bumps [sinon](https://github.com/sinonjs/sinon ) from 7.5.0 to 8.1.1.
- [Release notes](https://github.com/sinonjs/sinon/releases )
- [Changelog](https://github.com/sinonjs/sinon/blob/master/CHANGELOG.md )
- [Commits](https://github.com/sinonjs/sinon/compare/v7.5.0...v8.1.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-18 08:31:41 -05:00