Libraries.
This commit is contained in:
parent
5de62f80f3
commit
a4ccab7431
12
Cargo.toml
12
Cargo.toml
|
@ -1,7 +1,7 @@
|
||||||
[package]
|
[package]
|
||||||
|
|
||||||
name = "secp256k1"
|
name = "secp256k1"
|
||||||
version = "0.16.0"
|
version = "0.16.1"
|
||||||
authors = [ "Dawid Ciężarkiewicz <dpc@ucore.info>",
|
authors = [ "Dawid Ciężarkiewicz <dpc@ucore.info>",
|
||||||
"Andrew Poelstra <apoelstra@wpsoftware.net>" ]
|
"Andrew Poelstra <apoelstra@wpsoftware.net>" ]
|
||||||
license = "CC0-1.0"
|
license = "CC0-1.0"
|
||||||
|
@ -41,10 +41,10 @@ dont_replace_c_symbols = []
|
||||||
fuzztarget = []
|
fuzztarget = []
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
rand = "0.6"
|
rand = "0.6.5"
|
||||||
rand_core = "0.4"
|
rand_core = "0.4.2"
|
||||||
serde_test = "1.0"
|
serde_test = "1.0.102"
|
||||||
bitcoin_hashes = "0.7"
|
bitcoin_hashes = "0.7.1"
|
||||||
|
|
||||||
[dependencies.rand]
|
[dependencies.rand]
|
||||||
version = "0.6"
|
version = "0.6"
|
||||||
|
@ -65,4 +65,4 @@ name = "sign_verify"
|
||||||
|
|
||||||
[[example]]
|
[[example]]
|
||||||
name = "generate_keys"
|
name = "generate_keys"
|
||||||
required-features = ["rand"]
|
required-features = ["rand"]
|
||||||
|
|
|
@ -619,13 +619,13 @@ mod test {
|
||||||
fn next_u64(&mut self) -> u64 {
|
fn next_u64(&mut self) -> u64 {
|
||||||
self.next_u32() as u64
|
self.next_u32() as u64
|
||||||
}
|
}
|
||||||
fn try_fill_bytes(&mut self, _dest: &mut [u8]) -> Result<(), Error> {
|
|
||||||
Err(Error::new(ErrorKind::Unavailable, "not implemented"))
|
|
||||||
}
|
|
||||||
|
|
||||||
fn fill_bytes(&mut self, dest: &mut [u8]) {
|
fn fill_bytes(&mut self, dest: &mut [u8]) {
|
||||||
impls::fill_bytes_via_next(self, dest);
|
impls::fill_bytes_via_next(self, dest);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn try_fill_bytes(&mut self, _dest: &mut [u8]) -> Result<(), Error> {
|
||||||
|
Err(Error::new(ErrorKind::Unavailable, "not implemented"))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let s = Secp256k1::new();
|
let s = Secp256k1::new();
|
||||||
|
|
|
@ -147,9 +147,9 @@ macro_rules! impl_pretty_debug {
|
||||||
($thing:ident) => {
|
($thing:ident) => {
|
||||||
impl ::core::fmt::Debug for $thing {
|
impl ::core::fmt::Debug for $thing {
|
||||||
fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
|
fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
|
||||||
try!(write!(f, "{}(", stringify!($thing)));
|
write!(f, "{}(", stringify!($thing))?;
|
||||||
for i in self[..].iter().cloned() {
|
for i in self[..].iter().cloned() {
|
||||||
try!(write!(f, "{:02x}", i));
|
write!(f, "{:02x}", i)?;
|
||||||
}
|
}
|
||||||
write!(f, ")")
|
write!(f, ")")
|
||||||
}
|
}
|
||||||
|
@ -162,7 +162,7 @@ macro_rules! impl_raw_debug {
|
||||||
impl ::core::fmt::Debug for $thing {
|
impl ::core::fmt::Debug for $thing {
|
||||||
fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
|
fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
|
||||||
for i in self[..].iter().cloned() {
|
for i in self[..].iter().cloned() {
|
||||||
try!(write!(f, "{:02x}", i));
|
write!(f, "{:02x}", i)?;
|
||||||
}
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue