- 03 Apr, 2020 2 commits
-
-
Steven Allen authored
fix: don't drop bytes in the insecure transport
-
Steven Allen authored
gogo's varint reader buffers internally. If you use it then throw it away, you'll drop data. This commit reverts to using msgio, but uses the varint reader/writers instead.
-
- 30 Mar, 2020 1 commit
-
-
Steven Allen authored
build(deps): bump github.com/jbenet/goprocess from 0.1.3 to 0.1.4
-
- 26 Mar, 2020 4 commits
-
-
Aarsh Shah authored
Put signed peer record in the Address Change Event
-
Aarsh Shah authored
Co-Authored-By: Raúl Kripalani <raul@protocol.ai>
-
Aarsh Shah authored
Co-Authored-By: Raúl Kripalani <raul@protocol.ai>
-
Aarsh Shah authored
-
- 25 Mar, 2020 1 commit
-
-
dependabot-preview[bot] authored
Bumps [github.com/jbenet/goprocess](https://github.com/jbenet/goprocess) from 0.1.3 to 0.1.4. - [Release notes](https://github.com/jbenet/goprocess/releases) - [Commits](https://github.com/jbenet/goprocess/compare/v0.1.3...v0.1.4) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
-
- 10 Mar, 2020 1 commit
-
-
Steven Allen authored
That way, the root module doesn't depend on gocompat and all its dependencies.
-
- 07 Mar, 2020 2 commits
-
-
Steven Allen authored
Add extensive documentation to network events to explain the edge-cases. Co-authored-by: Will <will@cypherpunk.email>
-
Marten Seemann authored
* remove the Protector interface, introduce a PSK type * move decoding of the v1 PSK here
-
- 06 Mar, 2020 5 commits
-
-
Aarsh Shah authored
Introduce EvtPeerConnectednessChanged event
-
Aarsh Shah authored
-
Aarsh Shah authored
-
Raúl Kripalani authored
-
Vibhav Pant authored
-
- 05 Mar, 2020 1 commit
-
-
Steven Allen authored
Switch to a single routability event
-
- 04 Mar, 2020 2 commits
-
-
Steven Allen authored
-
Steven Allen authored
This means we can make the event _stateful_ so subscribing always gives us the last state.
-
- 03 Mar, 2020 3 commits
-
-
Steven Allen authored
docs: uniform comment sentences
-
Vasco Santos authored
-
Aarsh Shah authored
-
- 02 Mar, 2020 2 commits
-
-
Steven Allen authored
Merge pull request #122 from libp2p/dependabot/go_modules/github.com/multiformats/go-multiaddr-0.2.1 build(deps): bump github.com/multiformats/go-multiaddr from 0.2.0 to 0.2.1
-
dependabot-preview[bot] authored
Bumps [github.com/multiformats/go-multiaddr](https://github.com/multiformats/go-multiaddr) from 0.2.0 to 0.2.1. - [Release notes](https://github.com/multiformats/go-multiaddr/releases) - [Commits](https://github.com/multiformats/go-multiaddr/compare/v0.2.0...v0.2.1) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
-
- 29 Feb, 2020 1 commit
-
-
Aarsh Shah authored
-
- 28 Feb, 2020 3 commits
-
-
Aarsh Shah authored
-
Aarsh Shah authored
-
Aarsh Shah authored
-
- 19 Feb, 2020 1 commit
-
-
Steven Allen authored
chore(license): fix license detection
-
- 11 Feb, 2020 5 commits
-
-
Steven Allen authored
build(deps): bump github.com/libp2p/go-buffer-pool from 0.0.1 to 0.0.2
-
Steven Allen authored
Adding URLs to the licenses will cause go to detect this project as Apache 2.0. fix #114
-
dependabot-preview[bot] authored
Bumps [github.com/libp2p/go-buffer-pool](https://github.com/libp2p/go-buffer-pool) from 0.0.1 to 0.0.2. - [Release notes](https://github.com/libp2p/go-buffer-pool/releases) - [Commits](https://github.com/libp2p/go-buffer-pool/compare/v0.0.1...v0.0.2) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
-
Steven Allen authored
build(deps): bump github.com/ipfs/go-cid from 0.0.4 to 0.0.5
-
Steven Allen authored
build(deps): bump go.opencensus.io from 0.22.2 to 0.22.3
-
- 10 Feb, 2020 4 commits
-
-
Yusef Napora authored
-
dependabot-preview[bot] authored
Bumps [go.opencensus.io](https://github.com/census-instrumentation/opencensus-go) from 0.22.2 to 0.22.3. - [Release notes](https://github.com/census-instrumentation/opencensus-go/releases) - [Commits](https://github.com/census-instrumentation/opencensus-go/compare/v0.22.2...v0.22.3) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
-
dependabot-preview[bot] authored
Bumps [github.com/ipfs/go-cid](https://github.com/ipfs/go-cid) from 0.0.4 to 0.0.5. - [Release notes](https://github.com/ipfs/go-cid/releases) - [Commits](https://github.com/ipfs/go-cid/compare/v0.0.4...v0.0.5) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
-
Yusef Napora authored
* add SignedEnvelope type * use struct for SignedEnvelope instead of exposing protobuf directly * doc comments for envelopes * tests for SignedEnvelopes * add helpers to make routing records for Host * fix doc comment * go fmt * add method to peerstore to retrieve signed routing records * update to match spec changes * just use nanoseconds * use proto3 & rename fields to match spec changes * use proto3 for routing records * make envelope fields private & validate on unmarshal * use buffer pool for envelope signatures * tests for RoutingState * go fmt * rename Equals -> Equal, add some comments * use test helpers * get rid of unsigned RoutingState struct, only expose SignedRoutingState * 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. * whitespace * expose struct fields & remove accessors * use camelCase in protos for consistency * use multiformats uvarint for length-prefixes * remove payloadType check when unmarhaling * rm stray ref to golang/protobuf * define CertifiedAddrBook to avoid breaking API change * add events for updated addresses and routing state * remove SignedRoutingStateFromHost helper moving this to go-libp2p * add routing state records, extend peerstore API * fix: rebuild protos with new gogofaster generator * filter private addrs from signed routing records * envelope: use byte slices from pool; adjust interface. * move envelope to record package. * move protobuf files; adjust imports everywhere. * 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. * hoist Seq from PeerRecord to SignedEnvelope * test that PeerRecords can't be signed by wrong key * commit go.sum * add Seq field to envelope signature * fix proto_path in Makefile * fix import ordering * comments for PeerRecord proto message also removes the seq field from PeerMessage proto, since it was moved to the SignedEnvelope * use Record type for envelope payloads * rename SignedEnvelope -> Envelope, unmarshal payload in ConsumeEnvelope * return buffer to pool before early return * doc comments * rename CertifiedAddrBook methods, update comments * cache unmarshalled Record payload inside Envelope * doc comments * store reflect.Type when registering Record * Revert "return buffer to pool before early return" 8d8da386f26482e06dc21989a6b5ade69f0a46d9 misread this - unsigned will be nil if there's an error, so it was right the way it was * 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 * 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. * use explicit payloadType in MakeEnvelopeWithRecord * Revert DefaultRecord commits ae3bc7bdfb657c232229229706854a56effca80b a26c845a766b45ceabd87c17c0801d191650f0d4 * doc comments * move Seq field back to PeerRecord * make diffs optional in EvtLocalAddressesUpdated * more envelope tests * replace MakeEnvelope with record.Seal also: - add Domain and Codec fields to Record interface * fix import * add interface check * rename ProcessPeerRecord -> ConsumePeerRecord also, adds bool `accepted` return value * rename event field, add doc comment * peer record protobuf: fix field casing. * record protobuf: add docs and fix casing. * cleanup: group imports. * nit: split test/utils.go => test/{addrs,errors}.go. Co-authored-by: Raúl Kripalani <raul.kripalani@gmail.com>
-
- 04 Feb, 2020 2 commits
-
-
Steven Allen authored
Merge pull request #109 from libp2p/dependabot/go_modules/github.com/multiformats/go-multihash-0.0.13 build(deps): bump github.com/multiformats/go-multihash from 0.0.10 to 0.0.13
-
dependabot-preview[bot] authored
Bumps [github.com/multiformats/go-multihash](https://github.com/multiformats/go-multihash) from 0.0.10 to 0.0.13. - [Release notes](https://github.com/multiformats/go-multihash/releases) - [Commits](https://github.com/multiformats/go-multihash/compare/v0.0.10...v0.0.13) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
-