Skip to content
This repository has been archived by the owner on Sep 6, 2022. It is now read-only.

Signed envelopes & routing records #73

Merged
merged 70 commits into from
Feb 10, 2020
Merged

Signed envelopes & routing records #73

merged 70 commits into from
Feb 10, 2020

Commits on Jan 17, 2020

  1. add SignedEnvelope type

    yusefnapora committed Jan 17, 2020
    Configuration menu
    Copy the full SHA
    f4c9da5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    133f891 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    cc866a8 View commit details
    Browse the repository at this point in the history
  4. tests for SignedEnvelopes

    yusefnapora committed Jan 17, 2020
    Configuration menu
    Copy the full SHA
    71be7ba View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    8d61036 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    791e33f View commit details
    Browse the repository at this point in the history
  7. fix doc comment

    yusefnapora committed Jan 17, 2020
    Configuration menu
    Copy the full SHA
    2ebfd9d View commit details
    Browse the repository at this point in the history
  8. go fmt

    yusefnapora committed Jan 17, 2020
    Configuration menu
    Copy the full SHA
    c016eb5 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    f01458e View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    d75c257 View commit details
    Browse the repository at this point in the history
  11. just use nanoseconds

    yusefnapora committed Jan 17, 2020
    Configuration menu
    Copy the full SHA
    f583d3c View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    cf0cfa5 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    a8a530e View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    3724a31 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    be36d83 View commit details
    Browse the repository at this point in the history
  16. tests for RoutingState

    yusefnapora committed Jan 17, 2020
    Configuration menu
    Copy the full SHA
    7d10658 View commit details
    Browse the repository at this point in the history
  17. go fmt

    yusefnapora committed Jan 17, 2020
    Configuration menu
    Copy the full SHA
    c8a9a5e View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    cf19665 View commit details
    Browse the repository at this point in the history
  19. use test helpers

    yusefnapora committed Jan 17, 2020
    Configuration menu
    Copy the full SHA
    a56dc2c View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    bf36932 View commit details
    Browse the repository at this point in the history
  21. rm batching SignedRoutingStates accessor in peerstore

    the datastore peerstore implementation doesn't support batched reads, so
    it's no more efficient to get a bunch of states at once than it
    is to call SignedRoutingState multiple times.
    yusefnapora committed Jan 17, 2020
    Configuration menu
    Copy the full SHA
    00306a4 View commit details
    Browse the repository at this point in the history
  22. whitespace

    yusefnapora committed Jan 17, 2020
    Configuration menu
    Copy the full SHA
    347316f View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    272731b View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    ff5ddb3 View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    fb521c6 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    305fff1 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    ae469c6 View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    1168b4d View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    74bb6bb View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    8a8390e View commit details
    Browse the repository at this point in the history
  31. remove SignedRoutingStateFromHost helper

    moving this to go-libp2p
    yusefnapora committed Jan 17, 2020
    Configuration menu
    Copy the full SHA
    0bcca67 View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    6028ba0 View commit details
    Browse the repository at this point in the history
  33. move envelope to record package.

    raulk authored and yusefnapora committed Jan 17, 2020
    Configuration menu
    Copy the full SHA
    123324d View commit details
    Browse the repository at this point in the history
  34. Configuration menu
    Copy the full SHA
    bb547ef View commit details
    Browse the repository at this point in the history
  35. Configuration menu
    Copy the full SHA
    ae465aa View commit details
    Browse the repository at this point in the history
  36. rename RoutingStateRecord -> PeerRecord

    also removes embedded reference to Envelope from the record,
    as that was confusing.
    
    as a result, the CertifiedAddrBook now accepts/returns
    record.SignedEnvelope instead of a specialized type.
    yusefnapora committed Jan 17, 2020
    Configuration menu
    Copy the full SHA
    2e8cabc View commit details
    Browse the repository at this point in the history
  37. Configuration menu
    Copy the full SHA
    59348de View commit details
    Browse the repository at this point in the history
  38. Configuration menu
    Copy the full SHA
    5f6b601 View commit details
    Browse the repository at this point in the history
  39. commit go.sum

    yusefnapora committed Jan 17, 2020
    Configuration menu
    Copy the full SHA
    25c1a5d View commit details
    Browse the repository at this point in the history
  40. Configuration menu
    Copy the full SHA
    ce6885c View commit details
    Browse the repository at this point in the history
  41. Configuration menu
    Copy the full SHA
    be3fa5f View commit details
    Browse the repository at this point in the history
  42. fix import ordering

    yusefnapora committed Jan 17, 2020
    Configuration menu
    Copy the full SHA
    4b29ab4 View commit details
    Browse the repository at this point in the history
  43. comments for PeerRecord proto message

    also removes the seq field from PeerMessage proto,
    since it was moved to the SignedEnvelope
    yusefnapora committed Jan 17, 2020
    Configuration menu
    Copy the full SHA
    1ff5578 View commit details
    Browse the repository at this point in the history
  44. Configuration menu
    Copy the full SHA
    8dc249d View commit details
    Browse the repository at this point in the history
  45. Configuration menu
    Copy the full SHA
    77a03aa View commit details
    Browse the repository at this point in the history
  46. Configuration menu
    Copy the full SHA
    8d8da38 View commit details
    Browse the repository at this point in the history
  47. doc comments

    yusefnapora committed Jan 17, 2020
    Configuration menu
    Copy the full SHA
    39d8cbc View commit details
    Browse the repository at this point in the history
  48. Configuration menu
    Copy the full SHA
    d567b24 View commit details
    Browse the repository at this point in the history
  49. Configuration menu
    Copy the full SHA
    cf0122a View commit details
    Browse the repository at this point in the history
  50. doc comments

    yusefnapora committed Jan 17, 2020
    Configuration menu
    Copy the full SHA
    9724544 View commit details
    Browse the repository at this point in the history
  51. Configuration menu
    Copy the full SHA
    7ee4611 View commit details
    Browse the repository at this point in the history
  52. Revert "return buffer to pool before early return"

    8d8da38
    
    misread this - unsigned will be nil if there's an
    error, so it was right the way it was
    yusefnapora committed Jan 17, 2020
    Configuration menu
    Copy the full SHA
    3c208b0 View commit details
    Browse the repository at this point in the history
  53. use a DefaultRecord for unregistered PayloadTypes

    instead of returning an error if we don't have a registered
    Record for a given PayloadType, we can have a catch-all
    DefaultRecord type that just preserves the original payload
    as a []byte
    yusefnapora committed Jan 17, 2020
    Configuration menu
    Copy the full SHA
    a26c845 View commit details
    Browse the repository at this point in the history
  54. cleanup DefaultRecord code a bit

    - removes unused error return from blankRecordForPayloadType
    - just references instead of copying in DefaultRecord.UnmarshalRecord
      I figure this is likely safe, since we'll be unmarshalling from the
      payload of an Envelope, which shouldn't get altered after it's
      created.
    yusefnapora committed Jan 17, 2020
    Configuration menu
    Copy the full SHA
    ae3bc7b View commit details
    Browse the repository at this point in the history

Commits on Jan 20, 2020

  1. Configuration menu
    Copy the full SHA
    7a05223 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1de3d24 View commit details
    Browse the repository at this point in the history
  3. doc comments

    yusefnapora committed Jan 20, 2020
    Configuration menu
    Copy the full SHA
    b203ce3 View commit details
    Browse the repository at this point in the history

Commits on Jan 21, 2020

  1. Configuration menu
    Copy the full SHA
    25ff074 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5a523a1 View commit details
    Browse the repository at this point in the history

Commits on Jan 22, 2020

  1. more envelope tests

    yusefnapora committed Jan 22, 2020
    Configuration menu
    Copy the full SHA
    33890dd View commit details
    Browse the repository at this point in the history

Commits on Feb 3, 2020

  1. replace MakeEnvelope with record.Seal

    also:
    - add Domain and Codec fields to Record interface
    yusefnapora committed Feb 3, 2020
    Configuration menu
    Copy the full SHA
    3e293ba View commit details
    Browse the repository at this point in the history
  2. fix import

    yusefnapora committed Feb 3, 2020
    Configuration menu
    Copy the full SHA
    1a439d7 View commit details
    Browse the repository at this point in the history
  3. add interface check

    yusefnapora committed Feb 3, 2020
    Configuration menu
    Copy the full SHA
    04ce144 View commit details
    Browse the repository at this point in the history

Commits on Feb 4, 2020

  1. rename ProcessPeerRecord -> ConsumePeerRecord

    also, adds bool `accepted` return value
    yusefnapora committed Feb 4, 2020
    Configuration menu
    Copy the full SHA
    c29b681 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    48fdd0f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    97eee5a View commit details
    Browse the repository at this point in the history

Commits on Feb 10, 2020

  1. Configuration menu
    Copy the full SHA
    dfb8a63 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4a3c9dd View commit details
    Browse the repository at this point in the history
  3. cleanup: group imports.

    raulk committed Feb 10, 2020
    Configuration menu
    Copy the full SHA
    68fa5dc View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    541a648 View commit details
    Browse the repository at this point in the history