[package] name = "p256_flow" description = """ Flow-Rust-SDK Version of p256 Pure Rust implementation of the NIST P-256 (a.k.a. secp256r1, prime256v1) elliptic curve with support for ECDH, ECDSA signing/verification, and general purpose curve arithmetic Heavily modified for signing Flow blockchain transactions """ version = "1.0.0" # Also update html_root_url in lib.rs when bumping this authors = ["RustCrypto Developers"] license = "Apache-2.0 OR MIT" repository = "https://github.com/RustCrypto/elliptic-curves/tree/master/p256" readme = "README.md" edition = "2018" categories = ["cryptography", "no-std"] keywords = ["crypto", "ecc", "nist", "prime256v1", "secp256r1"] [dependencies] elliptic-curve-flow = "1.0.0" # optional dependencies ecdsa-core = { version = "1.0.0", package = "ecdsa-flow", optional = true, default-features = false, features = ["der"] } hex-literal = { version = "0.3", optional = true } sha3 = { version = "0.9.1", optional = false, default-features = false } [dev-dependencies] blobby = "0.3" ecdsa-core = { version = "1.0.0", package = "ecdsa-flow", default-features = false, features = ["dev"] } hex-literal = "0.3" proptest = "1.0" rand_core = { version = "0.6", features = ["getrandom"] } [features] default = ["arithmetic", "ecdsa", "pkcs8", "std", "sha256"] arithmetic = ["elliptic-curve-flow/arithmetic"] bits = ["arithmetic", "elliptic-curve-flow/bits"] digest = ["ecdsa-core/digest", "ecdsa-core/hazmat"] ecdh = ["arithmetic", "elliptic-curve-flow/ecdh"] ecdsa = ["arithmetic", "ecdsa-core/sign", "ecdsa-core/verify", "sha256"] jwk = ["elliptic-curve-flow/jwk"] pem = ["elliptic-curve-flow/pem", "pkcs8"] pkcs8 = ["elliptic-curve-flow/pkcs8"] sha256 = ["digest"] std = ["ecdsa-core/std", "elliptic-curve-flow/std"] # TODO: use weak activation for `ecdsa-core/std` when available test-vectors = ["hex-literal"] [package.metadata.docs.rs] all-features = true rustdoc-args = ["--cfg", "docsrs"]