52 Commits

Author SHA1 Message Date
acolytec3
41ab96c47d
docs: correct case for RSA keyType (#136)
* docs: correct case for RSA keyType

correct case of rsa keytype in docs/examples to match keyType exported from libp2p-crypto

Co-authored-by: Vasco Santos <vasco.santos@ua.pt>
2021-01-06 15:13:25 +01:00
a1300
4178e53db8
docs: add documentation for isPeerId(id) (#134) (#135) 2020-12-01 17:33:15 +01:00
Vojtech Simetka
6d571ae196
fix: typo in readme (#128) 2020-08-12 13:40:13 +02:00
Jacob Heun
8cd9dfb137
feat(cli): add support for specifying type and size (#122) 2020-04-22 16:32:38 +02:00
Christian Paul
74cdb24544 chore: typo publick -> public (#108) 2019-11-28 11:39:55 +01:00
Jacob Heun
bbf0416f08 feat: deprecate isEqual in favor of equals (#107) 2019-11-12 15:00:11 +01:00
Marcin Rataj
544ca7d74b feat: support Peer ID represented as CID (#105)
* feat: support Peer ID represented as CID

This change adds two functions:

- createFromCID accepts CID as String|CID|Buffer
  and creates PeerId from the multihash value inside of it
- toCIDString serializes PeerId multihash into a CIDv1 in Base32,
  as agreed in https://github.com/libp2p/specs/pull/209

License: MIT
Signed-off-by: Marcin Rataj <lidel@lidel.org>

* refactor: rename toCIDString to toString

CIDv1 is self describing, and toString was not defined.
Makes sense to use generic toString in this case.

This change also:
- remembers string with CID, so it is lazily generated only once
- switches createFromB58String to createFromCID (b58 is CIDv0),
  making it easier to migrate existing codebases.

License: MIT
Signed-off-by: Marcin Rataj <lidel@lidel.org>

* docs: comment tests

License: MIT
Signed-off-by: Marcin Rataj <lidel@lidel.org>

* feat: validate CID multicodec

- require CID with 'libp2p-key' (CIDv1) or 'dag-pb' (CIDv0 converted to CIDv1)
- delegate CID validation to CID constructor

License: MIT
Signed-off-by: Marcin Rataj <lidel@lidel.org>
2019-11-04 18:22:29 +01:00
Nate Foss
4d5bb2cfff chore: include marshalPubKey and example (#104) 2019-09-29 19:54:45 +02:00
Nate Foss
a2ac32ac0f chore: fix docs typo (#103) 2019-09-28 11:33:57 +02:00
Vasco Santos
911aa634d3
chore: lead maintainer update (#98) 2019-07-30 21:17:24 +02:00
Maciej Krüger
76864184da feat: add compact protobuf format (#76)
* docs: document .createFromProtobuf and .marshal
* fix: lint
* test: verify .marshal() does it's job
2019-07-12 18:35:46 +01:00
Arve Knudsen
17440a3f9a feat(peerid): support creating from secp256k1; harmonize algo with Go (#95) 2019-07-11 20:31:39 +01:00
Henrique Dias
c3463c7421 feat: async await (#87)
BREAKING CHANGE: API refactored to use async/await
2019-07-11 18:09:21 +01:00
Vasco Santos
bbabd7451e chore: add discourse badge (#93) 2019-04-18 19:32:14 +02:00
Maciej Krüger
6ecd9a8cb0 docs: various readme tweaks 2018-10-12 18:01:55 +02:00
Michael Garvin
e8ab1b9281 feat: change toPrint output to match go implementation 2018-07-02 19:26:03 +02:00
David Dias
417fd330b9 docs: add lead maintainer 2018-06-04 09:48:30 +01:00
David Dias
63428faae9 feat: p2p addrs situation (#66)
* chore: update deps

* chore: update gitignore

* chore: update CI

* chore: update README badge
2017-09-03 11:49:56 +01:00
David Dias
a2934aa371 chore: update ci 2017-07-21 09:29:12 -07:00
David Dias
0dc3c14f2b docs: update readme 2017-07-09 10:05:03 +01:00
David Dias
3f4f670691 feat: isEqual 2017-03-30 09:47:11 +01:00
Prashanth Chandra
531c9f1086 Fix typo in README example (#42) 2016-12-04 21:52:26 -08:00
Friedel Ziegelmayer
31701e236d Async Crypto Endeavour (#33)
* refactor: make import and creation async - This allows the use of native key generation in the browser

BREAKING CHANGE:

This changes the interface of .create, .createFromPrivKey,
.createFromPubKey, .createFromJSON
2016-11-03 07:51:29 +00:00
Richard Littauer
f6a42fef76 Update README URLs based on HTTP redirects 2016-10-02 10:03:56 -04:00
David Dias
d24500a042 Update README.md 2016-09-11 16:40:26 -04:00
David Dias
5fec44833e Update README.md 2016-09-11 16:40:09 -04:00
npmcdn-to-unpkg-bot
f0e380af58 Replace npmcdn.com with unpkg.com 2016-09-11 12:29:33 +01:00
dignifiedquire
58f1933980 fix: code review and docs and go interop 2016-05-24 14:03:31 +02:00
dignifiedquire
855a97956d refactor: use aegir 2016-04-15 13:20:05 +02:00
Stephen Whitmore
771b994d7e fixes README formatting 2016-04-13 10:00:26 -07:00
David Dias
2f4cdd3725 Merge pull request #16 from noffle/docs-and-examples
readme <3
2016-04-12 17:28:37 +01:00
Stephen Whitmore
f2a75f1188 100% coverage badge 2016-04-12 09:07:59 -07:00
Stephen Whitmore
dab90bd3b6 other bundlers 2016-04-12 09:04:02 -07:00
Stephen Whitmore
e9fdc0a27e applies readme love 2016-04-11 15:23:34 -07:00
David Dias
f16c08e7fd update the readme 2016-04-07 19:45:21 -04:00
David Dias
a8e591525b update readme 2016-03-10 19:36:47 +00:00
nginnever
73b42ff2aa dist file 2016-03-03 14:19:10 -08:00
David Dias
b2b90bfbb5 remove jshintrc and jshintignore 2016-03-03 17:43:30 +00:00
David Dias
59b89039b6 came to fix a square bracket, ended up touch a bunch of other things :) 2016-03-03 17:31:33 +00:00
David Dias
845bd088fe add coverage, fix codestyle 2016-02-14 07:32:09 +00:00
nginnever
91bc56eb05 small grammar changes 2016-02-13 07:49:51 -08:00
nginnever
6ce01ab434 keys now generated and derived match with go client 2016-02-04 12:02:18 -08:00
David Dias
2c1874a689 merge latest master 2015-11-05 18:48:13 +00:00
David Dias
3c0c9a3b19 tests and browser tests setup 2015-11-05 18:46:02 +00:00
David Dias
d7ab4bd8fb complement readme 2015-11-05 17:47:44 +00:00
David Dias
0b30a0964c update README and package.json 2015-10-28 22:04:55 +00:00
David Dias
192c65f09a update readme 2015-09-15 17:17:50 +01:00
David Dias
1096d15a16 Rename 2015-09-15 17:14:48 +01:00
David Dias
d472664924 add badges and travis 2015-08-25 10:38:32 +01:00
David Dias
4185ff1be6 add link to freenode#ipfs badge 2015-07-08 15:38:30 -07:00