Commit Graph

273 Commits

Author SHA1 Message Date
Marcin Rataj
4184c18976
Merge branch 'master' into feat/parse-cid-as-pid
License: MIT
Signed-off-by: Marcin Rataj <lidel@lidel.org>
2019-12-10 13:33:41 +01:00
Steven Allen
edd5242a11
Merge pull request #95 from libp2p/chore/update-rest
chore(dep): update btc (sekp) and openssl libraries
2019-12-09 06:35:17 -06:00
Steven Allen
af4f53a061 chore(dep): update btc (sekp) and openssl libraries
* The btc (sekp crypto) library now uses go mod.
* Our openssl library now supports a few more platforms.
2019-12-09 13:19:02 +01:00
Steven Allen
c4d6359d16
Merge pull request #96 from libp2p/dependabot/go_modules/github.com/libp2p/go-openssl-0.0.4
build(deps): bump github.com/libp2p/go-openssl from 0.0.3 to 0.0.4
2019-12-09 05:53:59 -06:00
dependabot-preview[bot]
a986079787
build(deps): bump github.com/libp2p/go-openssl from 0.0.3 to 0.0.4
Bumps [github.com/libp2p/go-openssl](https://github.com/libp2p/go-openssl) from 0.0.3 to 0.0.4.
- [Release notes](https://github.com/libp2p/go-openssl/releases)
- [Commits](https://github.com/libp2p/go-openssl/compare/v0.0.3...v0.0.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-09 11:20:31 +00:00
Steven Allen
f93c24de5d
Merge pull request #94 from libp2p/feat/std-ed25519
use standard library "crypto/ed25519"
2019-12-07 10:50:16 -05:00
Steven Allen
d25b4807f3 docs(readme): specify minimum go version 2019-12-07 10:33:12 -05:00
Steven Allen
cd602e126d chore: bump minimum go version 2019-12-07 10:32:20 -05:00
Steven Allen
0a54f30725
Merge pull request #88 from libp2p/fix/document-query-notifications
docs(routing/query): document public query event interfaces
2019-12-07 10:25:48 -05:00
Dmitry Yu Okunev
205fb711b9 Use standard library "crypto/ed25519" 2019-12-06 21:58:31 -05:00
Steven Allen
54a9d30499
Merge pull request #56 from JorikSchellekens/patch-1
Fix documentation missmatch for crypto methods.
2019-12-06 21:50:47 -05:00
Steven Allen
2ab3ece606
Merge pull request #83 from libp2p/dependabot/go_modules/github.com/mr-tron/base58-1.1.3
build(deps): bump github.com/mr-tron/base58 from 1.1.2 to 1.1.3
2019-12-06 19:55:27 -05:00
dependabot-preview[bot]
d9020dbcf6
build(deps): bump github.com/mr-tron/base58 from 1.1.2 to 1.1.3
Bumps [github.com/mr-tron/base58](https://github.com/mr-tron/base58) from 1.1.2 to 1.1.3.
- [Release notes](https://github.com/mr-tron/base58/releases)
- [Commits](https://github.com/mr-tron/base58/compare/v1.1.2...v1.1.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-07 00:44:47 +00:00
Steven Allen
c8a9de1043
Merge pull request #82 from libp2p/dependabot/go_modules/github.com/multiformats/go-multiaddr-0.1.2
build(deps): bump github.com/multiformats/go-multiaddr from 0.1.1 to 0.1.2
2019-12-06 19:42:42 -05:00
dependabot-preview[bot]
ebca051e1f
build(deps): bump github.com/multiformats/go-multiaddr
Bumps [github.com/multiformats/go-multiaddr](https://github.com/multiformats/go-multiaddr) from 0.1.1 to 0.1.2.
- [Release notes](https://github.com/multiformats/go-multiaddr/releases)
- [Commits](https://github.com/multiformats/go-multiaddr/compare/v0.1.1...v0.1.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-06 22:30:49 +00:00
Steven Allen
5383f357cc
Merge pull request #84 from libp2p/dependabot/go_modules/go.opencensus.io-0.22.2
build(deps): bump go.opencensus.io from 0.22.1 to 0.22.2
2019-12-06 17:28:34 -05:00
dependabot-preview[bot]
8f5557aa4d
build(deps): bump go.opencensus.io from 0.22.1 to 0.22.2
Bumps [go.opencensus.io](https://github.com/census-instrumentation/opencensus-go) from 0.22.1 to 0.22.2.
- [Release notes](https://github.com/census-instrumentation/opencensus-go/releases)
- [Commits](https://github.com/census-instrumentation/opencensus-go/compare/v0.22.1...v0.22.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-06 22:09:11 +00:00
Steven Allen
9607f2d14a
Merge pull request #85 from libp2p/dependabot/go_modules/github.com/multiformats/go-multihash-0.0.10
build(deps): bump github.com/multiformats/go-multihash from 0.0.8 to 0.0.10
2019-12-06 17:06:56 -05:00
Steven Allen
e8536bbb2a Merge branch 'ci/go-1.13' 2019-12-06 16:47:08 -05:00
Steven Allen
38d4ece410 ci: bump to go 1.13 2019-12-06 16:30:47 -05:00
Steven Allen
acfdb3e6a0 docs(routing/query): document public query event interfaces
fixes https://github.com/libp2p/go-libp2p-routing/issues/41
2019-12-06 12:59:52 -05:00
dependabot-preview[bot]
1aa5516910
build(deps): bump github.com/multiformats/go-multihash
Bumps [github.com/multiformats/go-multihash](https://github.com/multiformats/go-multihash) from 0.0.8 to 0.0.10.
- [Release notes](https://github.com/multiformats/go-multihash/releases)
- [Commits](https://github.com/multiformats/go-multihash/compare/v0.0.8...v0.0.10)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-06 17:41:54 +00:00
Steven Allen
0723374f6a
Merge pull request #77 from libp2p/fix/re-generate-plaintext-pb
fix(plaintext): regenerate protobuf code
2019-12-02 12:44:42 -05:00
Steven Allen
c465e0d6d3 fix(plaintext): regenerate protobuf code 2019-12-02 12:17:27 -05:00
Steven Allen
19668acf8f
Merge pull request #75 from libp2p/feat/trim-idle
feat(metrics): add function to trim idle meters
2019-11-16 08:31:03 -08:00
Steven Allen
e7c93f4fa1 feat(metrics): add function to trim idle meters 2019-11-15 18:40:37 -08:00
Steven Allen
d350e2be80 chore(dep): update go-flow-metrics 2019-11-15 18:40:15 -08:00
Yusef Napora
f06e38f2e8
use varints for delimiting plaintext 2.0 msgs (#74)
* use varints for delimiting plaintext 2.0 msgs

* lower size limit, fix comment

* go mod tidy - rm unused msgio dependency
2019-11-12 11:52:55 -05:00
Steven Allen
42a4b347f6
Merge pull request #71 from kpp/clear_bwc
Add API to reset bandwidth counters
2019-10-31 23:51:16 -07:00
Steven Allen
b1df0aa8b1 fix(metrics): update go-flow-metrics and fix tests for upstream changes 2019-10-31 23:47:34 -07:00
Roman Proskuryakov
91d2454e8c Add a test for BandwidthCounter::Reset 2019-11-01 04:46:48 +03:00
Roman Proskuryakov
7dbbdcc417 Add API to reset bandwidth counters 2019-11-01 04:25:27 +03:00
Steven Allen
f94ed8d804
Merge pull request #69 from libp2p/chore/update-protobuf
chore(dep): update protobuf
2019-10-28 13:47:17 -07:00
Steven Allen
11af061e49 chore(dep): update protobuf 2019-10-28 13:07:54 -07:00
Steven Allen
a5bf2487c1
Merge pull request #66 from quorumcontrol/update/crypto-library
Update golang.org/x/crypto to latest version
2019-10-23 02:21:11 +09:00
Steven Allen
2eac5ef263
Merge pull request #67 from libp2p/fix/openssl-min-key-size
fix(key size): forbid small openssl RSA keys
2019-10-22 18:52:11 +09:00
Steven Allen
bf79471ef0 fix(key size): forbid small openssl RSA keys
Also, add a test.
2019-10-21 15:52:27 -07:00
Wes Morgan
69fe90d32d
Update golang.org/x/crypto to latest version
There was a breaking change in the previous version that has since been
reverted.
2019-10-17 11:20:42 -06:00
Steven Allen
0bdeee6376 ci: bump to go 1.12 2019-10-02 08:45:34 -07:00
Steven Allen
dc718fa4da feat: support encoding/decoding peer IDs as CIDs _in text_ 2019-10-02 08:45:33 -07:00
Steven Allen
2f75277a8d
Merge pull request #62 from libp2p/mgoelzer-keystretcher-comment
Comment that KeyStretcher() is pending deprecation
2019-09-30 10:08:43 -07:00
Mike Goelzer
e331ba838c
Comment that KeyStretcher is pre-deprecation 2019-09-30 09:58:09 -07:00
Steven Allen
0c42806002
Merge pull request #59 from adam-hanna/master
adds ability to create keys from crypto.PrivateKey types
2019-09-30 09:23:17 -07:00
Steven Allen
469ed581a0
Merge pull request #48 from libp2p/fix/fallback-cmp
fix: use fallback comparison for ed25519 keys
2019-09-27 15:33:55 -07:00
Steven Allen
26b960839d
Merge pull request #61 from libp2p/dep/update
chore(dep): update deps
2019-09-25 11:24:15 -07:00
Steven Allen
ac53ea6aa0 chore(dep): update deps
* Update gogo protobuf to 1.3.0
* Update go-multiaddr to move protocol definitions _into_ go-multiaddr itself.
* update opencensus to 0.22.1
* update golang.org/x/crypto
* update sha256-simd to fix webasm build.
* update btcd (used by sekp keys)
2019-09-25 11:12:15 -07:00
Steven Allen
e0ae17a661
Merge pull request #60 from libp2p/fix/constant-time-compare
crypto: improve key comparison logic
2019-09-25 10:41:26 -07:00
Steven Allen
c3facda1a2 crypto: use basicEquals for ECDSA
The check was incomplete as it didn't test the curve. This switches us to use
basicEquals (which is also constant-time).

Note: This key type isn't used by anyone in-practice (to the best of my
knowledge).
2019-09-24 10:41:53 -07:00
Steven Allen
d68e65376d crypto: make the ECDSA receiver consistent 2019-09-24 10:41:53 -07:00
Steven Allen
947196bbb7 crypto: use constant time compare when decoding private keys
In practice, this is impossible to exploit without being able to corrupt the
private key which would allow a much simpler guess-and-check attack. However,
it's still a bad practice to compare private key material like this.
2019-09-24 10:40:54 -07:00