1. 04 Feb, 2020 2 commits
  2. 16 Jan, 2020 1 commit
  3. 11 Jan, 2020 1 commit
  4. 20 Dec, 2019 1 commit
  5. 19 Dec, 2019 1 commit
  6. 17 Dec, 2019 1 commit
  7. 16 Dec, 2019 1 commit
  8. 14 Dec, 2019 1 commit
  9. 13 Dec, 2019 1 commit
  10. 11 Dec, 2019 2 commits
  11. 10 Dec, 2019 2 commits
    • Marcin Rataj's avatar
      feat: support encoding/decoding peer IDs as CIDs in text (#41) · ba9101b5
      Marcin Rataj authored
      What:
      
      1. Supports decoding CIDs (of libp2p keys) as peer IDs 
         (https://github.com/libp2p/specs/issues/216)
      2. Continues to encode peer IDs as base58 multihashes by default.
      3. Adds functions for converting between peer IDs and CIDs.
      4. Deprecates IDB58{Decode,Encode}, replacing them with {Decode,Encode}.
      
      Why:
      
      1. We _need_ to support multibase somehow, so we can put peer IDs in domains.
      2. This makes peer IDs fully self describing. That is, the CID itself indicates that it's a hash of a libp2p public key.
      3. It's much easier to upgrade wire protocols than text. This change punts
      pids-as-cids on the wire down the road but that's something we can revisit if it ever becomes relevant. 
      
      See https://github.com/libp2p/specs/issues/111 for context.
      
      Deviations from that issue:
      
      * This _retains_ the current peer ID inlining of ed25519 keys. That turned out to be a nightmare, one I'd like to punt a bit more down the road.
      * Likewise, this _punts_ the question of embedding the multi-hash algorithm in the public key.
      ba9101b5
    • Marcin Rataj's avatar
      Merge branch 'master' into feat/parse-cid-as-pid · 4184c189
      Marcin Rataj authored
      License: MIT
      Signed-off-by: default avatarMarcin Rataj <lidel@lidel.org>
      4184c189
  12. 09 Dec, 2019 4 commits
  13. 07 Dec, 2019 9 commits
  14. 06 Dec, 2019 8 commits
  15. 02 Dec, 2019 2 commits
  16. 16 Nov, 2019 3 commits