Add test for monero ring signature adapter

This commit is contained in:
Thomas Eizinger 2021-05-04 11:46:58 +10:00
parent bce693ae76
commit f3f1d96431
No known key found for this signature in database
GPG Key ID: 651AC83A6C6C8B96
4 changed files with 40 additions and 3 deletions

29
Cargo.lock generated
View File

@ -660,6 +660,15 @@ dependencies = [
"vec_map",
]
[[package]]
name = "clear_on_drop"
version = "0.2.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c9cc5db465b294c3fa986d5bbb0f3017cd850bff6dd6c52f9ccff8b4d21b7b08"
dependencies = [
"cc",
]
[[package]]
name = "cloudabi"
version = "0.0.3"
@ -1641,6 +1650,12 @@ dependencies = [
"cfg-if 1.0.0",
]
[[package]]
name = "integer-encoding"
version = "3.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "90c11140ffea82edce8dcd74137ce9324ec24b3cf0175fc9d7e29164da9915b8"
[[package]]
name = "ipconfig"
version = "0.2.2"
@ -2250,17 +2265,22 @@ dependencies = [
[[package]]
name = "monero"
version = "0.12.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2c73108ba5cf025e437600990935234241f95ada3c4621960d50912cde739af6"
source = "git+https://github.com/comit-network/monero-rs?branch=fix-ci#baed70b50e7eee97733df3d580f0476c461bd4ab"
dependencies = [
"base58-monero",
"clear_on_drop",
"curve25519-dalek",
"fixed-hash",
"hash_edwards_to_edwards",
"hex 0.4.3",
"hex-literal",
"integer-encoding",
"keccak-hash",
"lazy_static",
"rand 0.7.3",
"serde",
"serde-big-array",
"subtle 2.4.0",
"thiserror",
]
@ -2271,8 +2291,13 @@ dependencies = [
"anyhow",
"curve25519-dalek",
"hash_edwards_to_edwards",
"monero",
"monero-harness",
"monero-rpc",
"monero-wallet",
"rand 0.7.3",
"tiny-keccak",
"tokio",
]
[[package]]

View File

@ -3,3 +3,4 @@ members = ["monero-adaptor", "monero-harness", "monero-rpc", "swap", "monero-wal
[patch.crates-io]
torut = { git = "https://github.com/bonomat/torut/", branch = "feature-flag-tor-secret-keys", default-features = false, features = [ "v3", "control" ] }
monero = { git = "https://github.com/comit-network/monero-rs", branch = "fix-ci" }

View File

@ -9,4 +9,11 @@ anyhow = "1"
curve25519-dalek = "3"
rand = "0.7"
tiny-keccak = { version = "2", features = ["keccak"] }
hash_edwards_to_edwards = { git = "https://github.com/comit-network/hash_edwards_to_edwards" }
hash_edwards_to_edwards = { git = "https://github.com/comit-network/hash_edwards_to_edwards" }
monero = "0.12"
[dev-dependencies]
monero-harness = { path = "../monero-harness" }
monero-rpc = { path = "../monero-rpc" }
monero-wallet = { path = "../monero-wallet" }
tokio = { version = "1", features = ["full"] }

View File

@ -0,0 +1,4 @@
#[tokio::test]
async fn monerod_integration_test() {
let _client = monero_rpc::monerod::Client::localhost(18081).unwrap();
}