add secp256k1

This commit is contained in:
2020-04-19 08:40:31 +08:00
parent 4314fcfca0
commit b1ab9bde74
3 changed files with 217 additions and 24 deletions

View File

@@ -7,7 +7,11 @@ edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
k256 = "0.1.0"
hex = "0.4"
secp256k1 = { version = "0.17.2", features = ["rand"] }
rand = "0.6"
# elliptic-curve = "0.3.0"
# k256 = "0.1.0"
ripemd160 = "0.8.0"
sha2 = "0.8.1"