2014-07-07 05:41:22 +00:00
[ package ]
2015-03-25 22:20:44 +00:00
name = "secp256k1"
2023-03-15 04:10:49 +00:00
version = "0.27.0"
2014-09-01 03:26:02 +00:00
authors = [ "Dawid Ciężarkiewicz <dpc@ucore.info>" ,
2015-05-04 15:33:53 +00:00
"Andrew Poelstra <apoelstra@wpsoftware.net>" ]
2015-05-04 15:26:45 +00:00
license = "CC0-1.0"
2018-03-05 19:42:39 +00:00
homepage = "https://github.com/rust-bitcoin/rust-secp256k1/"
repository = "https://github.com/rust-bitcoin/rust-secp256k1/"
2018-07-09 12:13:13 +00:00
documentation = "https://docs.rs/secp256k1/"
2021-06-19 09:06:27 +00:00
description = "Rust wrapper library for Pieter Wuille's `libsecp256k1`. Implements ECDSA and BIP 340 signatures for the SECG elliptic curve group secp256k1 and related utilities."
2015-05-04 15:26:45 +00:00
keywords = [ "crypto" , "ECDSA" , "secp256k1" , "libsecp256k1" , "bitcoin" ]
readme = "README.md"
2021-09-14 09:18:22 +00:00
edition = "2018"
2018-07-31 15:55:58 +00:00
[ package . metadata . docs . rs ]
2023-05-03 02:06:25 +00:00
all-features = true
2022-01-04 15:55:01 +00:00
rustdoc-args = [ "--cfg" , "docsrs" ]
2018-07-31 15:55:58 +00:00
2015-07-28 17:38:01 +00:00
[ features ]
2019-02-18 12:30:39 +00:00
default = [ "std" ]
2021-09-14 14:40:16 +00:00
std = [ "alloc" , "secp256k1-sys/std" ]
2021-05-17 12:37:36 +00:00
# allow use of Secp256k1::new and related API that requires an allocator
2022-07-18 23:03:24 +00:00
alloc = [ "secp256k1-sys/alloc" ]
2023-08-14 04:54:00 +00:00
hashes-std = [ "std" , "hashes/std" ]
2023-01-13 14:04:23 +00:00
rand-std = [ "std" , "rand" , "rand/std" , "rand/std_rng" ]
2019-10-21 12:15:19 +00:00
recovery = [ "secp256k1-sys/recovery" ]
lowmemory = [ "secp256k1-sys/lowmemory" ]
2022-02-01 04:43:46 +00:00
global-context = [ "std" ]
2022-02-16 23:46:52 +00:00
# disable re-randomization of the global context, which provides some
# defense-in-depth against sidechannel attacks. You should only use
# this feature if you expect the `rand` crate's thread_rng to panic.
# (If you are sure the `rand-std` feature will not be enabled, e.g.
# if you are doing a no-std build, then this feature does nothing
# and is not necessary.)
2022-03-28 13:39:06 +00:00
global-context-less-secure = [ "global-context" ]
2019-10-28 21:21:47 +00:00
2019-10-21 12:15:19 +00:00
[ dependencies ]
2023-09-27 18:37:09 +00:00
secp256k1-sys = { version = "0.9.0" , default-features = false , path = "./secp256k1-sys" }
2023-03-18 16:06:41 +00:00
serde = { version = "1.0.103" , default-features = false , optional = true }
2022-03-01 16:22:37 +00:00
2022-03-02 09:01:12 +00:00
# You likely only want to enable these if you explicitly do not want to use "std", otherwise enable
2023-08-14 04:54:00 +00:00
# the respective -std feature e.g., hashes-std
2023-08-24 02:41:49 +00:00
hashes = { package = "bitcoin_hashes" , version = ">= 0.12, <= 0.13" , default-features = false , optional = true }
2021-09-14 10:36:50 +00:00
rand = { version = "0.8" , default-features = false , optional = true }
2020-08-27 19:58:00 +00:00
2017-12-19 20:36:46 +00:00
[ dev-dependencies ]
2021-09-14 10:36:50 +00:00
rand_core = "0.6"
2023-03-18 16:00:56 +00:00
serde_cbor = "0.10.0"
2023-03-18 16:06:41 +00:00
serde_test = "1.0.19"
2022-03-08 00:55:05 +00:00
bincode = "1.3.3"
2020-04-16 17:07:14 +00:00
[ target . wasm32-unknown-unknown . dev-dependencies ]
wasm-bindgen-test = "0.3"
2022-04-28 14:30:58 +00:00
getrandom = { version = "0.2" , features = [ "js" ] }
2020-04-16 17:07:14 +00:00
2019-10-28 20:09:18 +00:00
2019-10-28 20:10:31 +00:00
[ [ example ] ]
name = "sign_verify_recovery"
2023-08-14 04:54:00 +00:00
required-features = [ "recovery" , "hashes-std" ]
2019-10-28 20:10:31 +00:00
2019-10-28 20:09:59 +00:00
[ [ example ] ]
name = "sign_verify"
2023-08-14 04:54:00 +00:00
required-features = [ "hashes-std" ]
2019-10-28 20:09:59 +00:00
2019-10-28 20:09:18 +00:00
[ [ example ] ]
name = "generate_keys"
2022-11-17 23:00:23 +00:00
required-features = [ "rand-std" ]
2020-12-18 12:08:52 +00:00
[ workspace ]
members = [ "secp256k1-sys" ]
2021-01-11 19:15:10 +00:00
exclude = [ "no_std_test" ]