mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-13 18:11:22 +00:00
core/: Update libsecp256k1 from 0.6 to 0.7 (#2306)
Signed-off-by: koushiro <koushiro.cqx@gmail.com>
This commit is contained in:
@ -18,7 +18,7 @@ fnv = "1.0"
|
|||||||
futures = { version = "0.3.1", features = ["executor", "thread-pool"] }
|
futures = { version = "0.3.1", features = ["executor", "thread-pool"] }
|
||||||
futures-timer = "3"
|
futures-timer = "3"
|
||||||
lazy_static = "1.2"
|
lazy_static = "1.2"
|
||||||
libsecp256k1 = { version = "0.6.0", optional = true }
|
libsecp256k1 = { version = "0.7.0", optional = true }
|
||||||
log = "0.4"
|
log = "0.4"
|
||||||
multiaddr = { version = "0.13.0" }
|
multiaddr = { version = "0.13.0" }
|
||||||
multihash = { version = "0.14", default-features = false, features = ["std", "multihash-impl", "identity", "sha2"] }
|
multihash = { version = "0.14", default-features = false, features = ["std", "multihash-impl", "identity", "sha2"] }
|
||||||
@ -26,7 +26,7 @@ multistream-select = { version = "0.10", path = "../misc/multistream-select" }
|
|||||||
parking_lot = "0.11.0"
|
parking_lot = "0.11.0"
|
||||||
pin-project = "1.0.0"
|
pin-project = "1.0.0"
|
||||||
prost = "0.9"
|
prost = "0.9"
|
||||||
rand = "0.7"
|
rand = "0.8"
|
||||||
rw-stream-sink = "0.2.0"
|
rw-stream-sink = "0.2.0"
|
||||||
sha2 = "0.9.1"
|
sha2 = "0.9.1"
|
||||||
smallvec = "1.6.1"
|
smallvec = "1.6.1"
|
||||||
@ -47,6 +47,7 @@ libp2p-noise = { path = "../transports/noise" }
|
|||||||
libp2p-tcp = { path = "../transports/tcp" }
|
libp2p-tcp = { path = "../transports/tcp" }
|
||||||
multihash = { version = "0.14", default-features = false, features = ["arb"] }
|
multihash = { version = "0.14", default-features = false, features = ["arb"] }
|
||||||
quickcheck = "0.9.0"
|
quickcheck = "0.9.0"
|
||||||
|
rand07 = { package = "rand", version = "0.7" }
|
||||||
wasm-timer = "0.2"
|
wasm-timer = "0.2"
|
||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
|
@ -298,7 +298,7 @@ impl DerDecodable<'_> for Asn1SubjectPublicKeyInfo {
|
|||||||
mod tests {
|
mod tests {
|
||||||
use super::*;
|
use super::*;
|
||||||
use quickcheck::*;
|
use quickcheck::*;
|
||||||
use rand::seq::SliceRandom;
|
use rand07::seq::SliceRandom;
|
||||||
use std::fmt;
|
use std::fmt;
|
||||||
|
|
||||||
const KEY1: &'static [u8] = include_bytes!("test/rsa-2048.pk8");
|
const KEY1: &'static [u8] = include_bytes!("test/rsa-2048.pk8");
|
||||||
|
@ -29,7 +29,7 @@ use libp2p_core::{
|
|||||||
ConnectedPoint,
|
ConnectedPoint,
|
||||||
};
|
};
|
||||||
use quickcheck::*;
|
use quickcheck::*;
|
||||||
use rand::Rng;
|
use rand07::Rng;
|
||||||
use std::num::NonZeroU8;
|
use std::num::NonZeroU8;
|
||||||
use std::task::Poll;
|
use std::task::Poll;
|
||||||
use util::{test_network, TestHandler};
|
use util::{test_network, TestHandler};
|
||||||
|
@ -28,13 +28,14 @@ use libp2p_core::{
|
|||||||
PeerId,
|
PeerId,
|
||||||
};
|
};
|
||||||
use quickcheck::*;
|
use quickcheck::*;
|
||||||
use rand::Rng;
|
|
||||||
use std::task::Poll;
|
use std::task::Poll;
|
||||||
use util::{test_network, TestHandler};
|
use util::{test_network, TestHandler};
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn max_outgoing() {
|
fn max_outgoing() {
|
||||||
let outgoing_limit = rand::thread_rng().gen_range(1, 10);
|
use rand::Rng;
|
||||||
|
|
||||||
|
let outgoing_limit = rand::thread_rng().gen_range(1..10);
|
||||||
|
|
||||||
let limits = ConnectionLimits::default().with_max_pending_outgoing(Some(outgoing_limit));
|
let limits = ConnectionLimits::default().with_max_pending_outgoing(Some(outgoing_limit));
|
||||||
let cfg = NetworkConfig::default().with_connection_limits(limits);
|
let cfg = NetworkConfig::default().with_connection_limits(limits);
|
||||||
@ -89,6 +90,8 @@ fn max_outgoing() {
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn max_established_incoming() {
|
fn max_established_incoming() {
|
||||||
|
use rand07::Rng;
|
||||||
|
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
struct Limit(u32);
|
struct Limit(u32);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user