[package] name = "cashweb-secp256k1" version = "0.19.1" authors = [ "Dawid Ciężarkiewicz ", "Andrew Poelstra " ] license = "CC0-1.0" homepage = "https://github.com/cashweb/cashweb-secp256k1/" repository = "https://github.com/cashweb/cashweb-secp256k1/" documentation = "https://docs.rs/cashweb-secp256k1/" description = "Rust bindings for Pieter Wuille's `libsecp256k1` library. Implements ECDSA for the SECG elliptic curve group secp256k1 and related utilities." keywords = [ "crypto", "ECDSA", "secp256k1", "libsecp256k1", "bitcoin" ] readme = "README.md" autoexamples = false # Remove when edition 2018 https://github.com/rust-lang/cargo/issues/5330 # Should make docs.rs show all functions, even those behind non-default features [package.metadata.docs.rs] features = [ "rand", "rand-std", "serde", "recovery", "endomorphism" ] [features] unstable = ["recovery", "rand-std"] default = ["std"] std = ["cashweb-secp256k1-sys/std"] rand-std = ["rand/std"] recovery = ["cashweb-secp256k1-sys/recovery"] endomorphism = ["cashweb-secp256k1-sys/endomorphism"] lowmemory = ["cashweb-secp256k1-sys/lowmemory"] global-context = ["std", "rand-std"] [dependencies] cashweb-secp256k1-sys = { version = "0.3.1", default-features = false, path = "./cashweb-secp256k1-sys" } bitcoin_hashes = { version = "0.9.4", optional = true } rand = { version = "0.6.0", default-features = false, optional = true } serde = { version = "1.0.118", default-features = false, optional = true } [dev-dependencies] rand = "0.6.0" rand_core = "0.4.0" serde_test = "1.0.118" bitcoin_hashes = "0.9.4" [target.wasm32-unknown-unknown.dev-dependencies] wasm-bindgen-test = "0.3.19" rand = { version = "0.6", features = ["wasm-bindgen"] } [[example]] name = "sign_verify_recovery" required-features = ["recovery"] [[example]] name = "sign_verify" [[example]] name = "generate_keys" required-features = ["rand"] [workspace] members = ["cashweb-secp256k1-sys"] exclude = ["no_std_test"]