From bbbe3f810fb493ff0770b27a5158ea12d99211ca Mon Sep 17 00:00:00 2001 From: Weikeng Chen Date: Sat, 14 Dec 2024 16:56:04 +0800 Subject: [PATCH] update Cargo.lock (#189) --- Cargo.lock | 188 +++++++++++++++++++------------------- src/dsl/plonk/covenant.rs | 15 ++- src/dsl/plonk/mod.rs | 48 ++++------ 3 files changed, 116 insertions(+), 135 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index c81a6e9..acc0adb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -16,9 +16,9 @@ dependencies = [ [[package]] name = "anstream" -version = "0.6.15" +version = "0.6.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "64e15c1ab1f89faffbf04a634d5e1962e9074f2741eef6d97f3c4e322426d526" +checksum = "8acc5369981196006228e28809f761875c0327210a891e941f4c683b3a99529b" dependencies = [ "anstyle", "anstyle-parse", @@ -31,43 +31,43 @@ dependencies = [ [[package]] name = "anstyle" -version = "1.0.8" +version = "1.0.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1bec1de6f59aedf83baf9ff929c98f2ad654b97c9510f4e70cf6f661d49fd5b1" +checksum = "55cc3b69f167a1ef2e161439aa98aed94e6028e5f9a59be9a6ffb47aef1651f9" [[package]] name = "anstyle-parse" -version = "0.2.5" +version = "0.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb47de1e80c2b463c735db5b217a0ddc39d612e7ac9e2e96a5aed1f57616c1cb" +checksum = "3b2d16507662817a6a20a9ea92df6652ee4f94f914589377d69f3b21bc5798a9" dependencies = [ "utf8parse", ] [[package]] name = "anstyle-query" -version = "1.1.1" +version = "1.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6d36fc52c7f6c869915e99412912f22093507da8d9e942ceaf66fe4b7c14422a" +checksum = "79947af37f4177cfead1110013d678905c37501914fba0efea834c3fe9a8d60c" dependencies = [ - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] name = "anstyle-wincon" -version = "3.0.4" +version = "3.0.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5bf74e1b6e971609db8ca7a9ce79fd5768ab6ae46441c572e46cf596f59e57f8" +checksum = "2109dbce0e72be3ec00bed26e6a7479ca384ad226efdd66db8fa2e3a38c83125" dependencies = [ "anstyle", - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] name = "anyhow" -version = "1.0.89" +version = "1.0.94" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "86fdf8605db99b54d3cd748a44c6d04df638eb5dafb219b135d0149bd0db01f6" +checksum = "c1fd03a028ef38ba2276dce7e33fcd6369c158a1bca17946c4b1b701891c1ff7" [[package]] name = "ark-ff" @@ -184,9 +184,9 @@ dependencies = [ [[package]] name = "bitcoin" -version = "0.32.3" +version = "0.32.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0032b0e8ead7074cda7fc4f034409607e3f03a6f71d66ade8a307f79b4d99e73" +checksum = "ce6bc65742dea50536e35ad42492b234c27904a27f0abdcbce605015cb4ea026" dependencies = [ "base58ck", "bech32", @@ -252,9 +252,9 @@ checksum = "30bdbe14aa07b06e6cfeffc529a1f099e5fbe249524f8125358604df99a4bed2" [[package]] name = "bitcoin-io" -version = "0.1.2" +version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "340e09e8399c7bd8912f495af6aa58bea0c9214773417ffaa8f6460f93aaee56" +checksum = "0b47c4ab7a93edb0c7198c5535ed9b52b63095f4e9b45279c6736cec4b856baf" [[package]] name = "bitcoin-script" @@ -271,7 +271,7 @@ dependencies = [ [[package]] name = "bitcoin-script-dsl" version = "0.1.0" -source = "git+https://github.com/Bitcoin-Wildlife-Sanctuary/dsl#36f3bc7fdae77a53c63fa66c6ddc8ed3ceebc434" +source = "git+https://github.com/Bitcoin-Wildlife-Sanctuary/dsl#0dc29bc197372d514f3eb1481b15f40a54df1b83" dependencies = [ "anyhow", "bincode", @@ -356,9 +356,9 @@ checksum = "79296716171880943b8470b5f8d03aa55eb2e645a4874bdbb28adb49162e012c" [[package]] name = "bytemuck" -version = "1.18.0" +version = "1.20.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "94bbb0ad554ad961ddc5da507a12a29b14e4ae5bda06b19f575a3e6079d2e2ae" +checksum = "8b37c88a63ffd85d15b406896cc343916d7cf57838a847b3a6f2ca5d39a5695a" dependencies = [ "bytemuck_derive", ] @@ -371,7 +371,7 @@ checksum = "bcfcc3cd946cb52f0bbfdbbcfa2f4e24f75ebb6c0e1002f7c25904fada18b9ec" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.90", ] [[package]] @@ -388,9 +388,9 @@ checksum = "7b02b629252fe8ef6460461409564e2c21d0c8e77e0944f3d189ff06c4e932ad" [[package]] name = "cc" -version = "1.1.28" +version = "1.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2e80e3b6a3ab07840e1cae9b0666a63970dc28e8ed5ffbcdacbfc760c281bfc1" +checksum = "9157bbaa6b165880c27a4293a474c91cdcf265cc68cc829bf10be0964a391caf" dependencies = [ "shlex", ] @@ -403,9 +403,9 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" [[package]] name = "clap" -version = "4.5.20" +version = "4.5.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b97f376d85a664d5837dbae44bf546e6477a679ff6610010f17276f686d867e8" +checksum = "3135e7ec2ef7b10c6ed8950f0f792ed96ee093fa088608f1c76e569722700c84" dependencies = [ "clap_builder", "clap_derive", @@ -413,9 +413,9 @@ dependencies = [ [[package]] name = "clap_builder" -version = "4.5.20" +version = "4.5.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "19bc80abd44e4bed93ca373a0704ccbd1b710dc5749406201bb018272808dc54" +checksum = "30582fc632330df2bd26877bde0c1f4470d57c582bbc070376afcd04d8cb4838" dependencies = [ "anstream", "anstyle", @@ -432,20 +432,20 @@ dependencies = [ "heck", "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.90", ] [[package]] name = "clap_lex" -version = "0.7.2" +version = "0.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1462739cb27611015575c0c11df5df7601141071f07518d56fcc1be504cbec97" +checksum = "f46ad14479a25103f283c0f10005961cf086d8dc42205bb44c46ac563475dca6" [[package]] name = "colorchoice" -version = "1.0.2" +version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d3fd119d74b830634cea2a0f58bbd0d54540518a14397557951e79340abc28c0" +checksum = "5b63caa9aa9397e2d9480a9b13673856c78d8ac123288526c37d7839f2a86990" [[package]] name = "colored" @@ -476,9 +476,9 @@ dependencies = [ [[package]] name = "cpufeatures" -version = "0.2.14" +version = "0.2.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "608697df725056feaccfa42cffdaeeec3fccc4ffc38358ecd19b243e716a78e0" +checksum = "16b80225097f2e5ae4e7179dd2266824648f3e2f49d9134d584b76389d31c4c3" dependencies = [ "libc", ] @@ -531,12 +531,12 @@ dependencies = [ [[package]] name = "ctor" -version = "0.2.8" +version = "0.2.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "edb49164822f3ee45b17acd4a208cfc1251410cf0cad9a833234c9890774dd9f" +checksum = "32a2785755761f3ddc1492979ce1e48d2c00d09311c39e4466429188f3dd6501" dependencies = [ "quote", - "syn 2.0.79", + "syn 2.0.90", ] [[package]] @@ -576,7 +576,7 @@ dependencies = [ "enum-ordinalize", "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.90", ] [[package]] @@ -602,7 +602,7 @@ checksum = "0d28318a75d4aead5c4db25382e8ef717932d0346600cacae6357eb5941bc5ff" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.90", ] [[package]] @@ -663,9 +663,9 @@ dependencies = [ [[package]] name = "hashbrown" -version = "0.15.0" +version = "0.15.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e087f84d4f86bf4b218b927129862374b72199ae7d8657835f1e89000eea4fb" +checksum = "bf151400ff0baff5465007dd2f3e717f3fe502074ca563069ce3a6629d07b289" [[package]] name = "hashlink" @@ -714,12 +714,12 @@ dependencies = [ [[package]] name = "indexmap" -version = "2.6.0" +version = "2.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "707907fe3c25f5424cce2cb7e1cbcafee6bdbe735ca90ef77c29e84591e5b9da" +checksum = "62f822373a4fe84d4bb149bf54e584a7f4abec90e072ed49cda0edea5b95471f" dependencies = [ "equivalent", - "hashbrown 0.15.0", + "hashbrown 0.15.2", ] [[package]] @@ -757,10 +757,11 @@ dependencies = [ [[package]] name = "js-sys" -version = "0.3.71" +version = "0.3.76" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0cb94a0ffd3f3ee755c20f7d8752f45cac88605a4dcf808abcff72873296ec7b" +checksum = "6717b6b5b077764fb5966237269cb3c64edddde4b14ce42647430a78ced9e7b7" dependencies = [ + "once_cell", "wasm-bindgen", ] @@ -772,9 +773,9 @@ checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" [[package]] name = "libc" -version = "0.2.159" +version = "0.2.168" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "561d97a539a36e26a9a5fad1ea11a3039a67714694aaa379433e580854bc3dc5" +checksum = "5aaeb2981e0606ca11d79718f8bb01164f1d6ed75080182d3abf017e6d244b6d" [[package]] name = "libsqlite3-sys" @@ -835,9 +836,9 @@ checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a" [[package]] name = "pin-project-lite" -version = "0.2.14" +version = "0.2.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bda66fc9667c18cb2758a2ac84d1167245054bcf85d5d1aaa6923f45801bdd02" +checksum = "915a1e146535de9163f3987b8944ed8cf49a18bb0056bcebcdcece385cece4ff" [[package]] name = "pkg-config" @@ -880,9 +881,9 @@ dependencies = [ [[package]] name = "proc-macro2" -version = "1.0.87" +version = "1.0.92" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b3e4daa0dcf6feba26f985457cdf104d4b4256fc5a09547140f3631bb076b19a" +checksum = "37d3544b3f2748c54e147655edb5025752e2303145b5aefb3c3ea2c78b973bb0" dependencies = [ "unicode-ident", ] @@ -1010,28 +1011,28 @@ dependencies = [ [[package]] name = "semver" -version = "1.0.23" +version = "1.0.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61697e0a1c7e512e84a621326239844a24d8207b4669b41bc18b32ea5cbf988b" +checksum = "3cb6eb87a131f756572d7fb904f6e7b68633f09cca868c5df1c4b8d1a694bbba" [[package]] name = "serde" -version = "1.0.210" +version = "1.0.216" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8e3592472072e6e22e0a54d5904d9febf8508f65fb8552499a1abc7d1078c3a" +checksum = "0b9781016e935a97e8beecf0c933758c97a5520d32930e460142b4cd80c6338e" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.210" +version = "1.0.216" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "243902eda00fad750862fc144cea25caca5e20d615af0a81bee94ca738f1df1f" +checksum = "46f859dbbf73865c6627ed570e78961cd3ac92407a2d117204c49232485da55e" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.90", ] [[package]] @@ -1085,7 +1086,7 @@ checksum = "bbc159a1934c7be9761c237333a57febe060ace2bc9e3b337a59a37af206d19f" dependencies = [ "starknet-curve", "starknet-ff", - "syn 2.0.79", + "syn 2.0.90", ] [[package]] @@ -1159,9 +1160,9 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.79" +version = "2.0.90" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "89132cd0bf050864e1d38dc3bbc07a0eb8e7530af26344d3d2bbbef83499f590" +checksum = "919d3b74a5dd0ccd15aeb8f93e7006bd9e14c295087c9896a110f490752bcf31" dependencies = [ "proc-macro2", "quote", @@ -1170,29 +1171,29 @@ dependencies = [ [[package]] name = "thiserror" -version = "1.0.64" +version = "1.0.69" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d50af8abc119fb8bb6dbabcfa89656f46f84aa0ac7688088608076ad2b459a84" +checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "1.0.64" +version = "1.0.69" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08904e7672f5eb876eaaf87e0ce17857500934f4981c4a0ab2b4aa98baac7fc3" +checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.90", ] [[package]] name = "tracing" -version = "0.1.40" +version = "0.1.41" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c3523ab5a71916ccf420eebdf5521fcef02141234bbc0b8a49f2fdc4544364ef" +checksum = "784e0ac535deb450455cbfa28a6f0df145ea1bb7ae51b821cf5e7927fdcfbdd0" dependencies = [ "pin-project-lite", "tracing-attributes", @@ -1201,20 +1202,20 @@ dependencies = [ [[package]] name = "tracing-attributes" -version = "0.1.27" +version = "0.1.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7" +checksum = "395ae124c09f9e6918a2310af6038fba074bcf474ac352496d5910dd59a2226d" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.90", ] [[package]] name = "tracing-core" -version = "0.1.32" +version = "0.1.33" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c06d3da6113f116aaee68e4d601191614c9053067f9ab7f6edbcb161237daa54" +checksum = "e672c95779cf947c5311f83787af4fa8fffd12fb27e4993211a84bdfd9610f9c" dependencies = [ "once_cell", ] @@ -1227,9 +1228,9 @@ checksum = "42ff0bf0c66b8238c6f3b578df37d0b7848e55df8577b3f74f92a69acceeb825" [[package]] name = "unicode-ident" -version = "1.0.13" +version = "1.0.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e91b56cd4cadaeb79bbf1a5645f6b4f8dc5bde8834ad5894a8db35fda9efa1fe" +checksum = "adb9e6ca4f869e1180728b7950e35922a7fc6397f7b641499e8f3ef06e50dc83" [[package]] name = "utf8parse" @@ -1257,9 +1258,9 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" [[package]] name = "wasm-bindgen" -version = "0.2.94" +version = "0.2.99" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ef073ced962d62984fb38a36e5fdc1a2b23c9e0e1fa0689bb97afa4202ef6887" +checksum = "a474f6281d1d70c17ae7aa6a613c87fce69a127e2624002df63dcb39d6cf6396" dependencies = [ "cfg-if", "once_cell", @@ -1268,24 +1269,23 @@ dependencies = [ [[package]] name = "wasm-bindgen-backend" -version = "0.2.94" +version = "0.2.99" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c4bfab14ef75323f4eb75fa52ee0a3fb59611977fd3240da19b2cf36ff85030e" +checksum = "5f89bb38646b4f81674e8f5c3fb81b562be1fd936d84320f3264486418519c79" dependencies = [ "bumpalo", "log", - "once_cell", "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.90", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-macro" -version = "0.2.94" +version = "0.2.99" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a7bec9830f60924d9ceb3ef99d55c155be8afa76954edffbb5936ff4509474e7" +checksum = "2cc6181fd9a7492eef6fef1f33961e3695e4579b9872a6f7c83aee556666d4fe" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -1293,22 +1293,22 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.94" +version = "0.2.99" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4c74f6e152a76a2ad448e223b0fc0b6b5747649c3d769cc6bf45737bf97d0ed6" +checksum = "30d7a95b763d3c45903ed6c81f156801839e5ee968bb07e534c44df0fcd330c2" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.90", "wasm-bindgen-backend", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-shared" -version = "0.2.94" +version = "0.2.99" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a42f6c679374623f295a8623adfe63d9284091245c3504bde47c17a3ce2777d9" +checksum = "943aab3fdaaa029a6e0271b35ea10b72b943135afe9bffca82384098ad0e06a6" [[package]] name = "windows-sys" @@ -1321,9 +1321,9 @@ dependencies = [ [[package]] name = "windows-sys" -version = "0.52.0" +version = "0.59.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" +checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b" dependencies = [ "windows-targets 0.52.6", ] @@ -1467,7 +1467,7 @@ checksum = "fa4f8080344d4671fb4e831a13ad1e68092748387dfc4f55e356242fae12ce3e" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.90", ] [[package]] @@ -1487,5 +1487,5 @@ checksum = "ce36e65b0d2999d2aafac989fb249189a141aee1f53c612c1f37d72631959f69" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.90", ] diff --git a/src/dsl/plonk/covenant.rs b/src/dsl/plonk/covenant.rs index 09c3846..4b9aa4e 100644 --- a/src/dsl/plonk/covenant.rs +++ b/src/dsl/plonk/covenant.rs @@ -123,8 +123,7 @@ pub fn compute_all_information() -> PlonkAllInformation { witnesses.push(witness); outputs.push( convert_to_witness(script! { - { ldm.write_hash_var.as_ref().unwrap().value.clone() } - { ldm.read_hash_var.as_ref().unwrap().value.clone() } + { ldm.hash_var.as_ref().unwrap().value.clone() } }) .unwrap(), ); @@ -162,8 +161,7 @@ pub fn compute_all_information() -> PlonkAllInformation { outputs.push( convert_to_witness(script! { - { ldm.write_hash_var.as_ref().unwrap().value.clone() } - { ldm.read_hash_var.as_ref().unwrap().value.clone() } + { ldm.hash_var.as_ref().unwrap().value.clone() } }) .unwrap(), ); @@ -192,8 +190,7 @@ pub fn compute_all_information() -> PlonkAllInformation { outputs.push( convert_to_witness(script! { - { ldm.write_hash_var.as_ref().unwrap().value.clone() } - { ldm.read_hash_var.as_ref().unwrap().value.clone() } + { ldm.hash_var.as_ref().unwrap().value.clone() } }) .unwrap(), ); @@ -260,17 +257,17 @@ impl CovenantProgram for PlonkVerifierProgram { // - new stack hash OP_TOALTSTACK OP_TOALTSTACK - { StackHash::hash_from_hint(2) } + { StackHash::hash_from_hint(1) } OP_FROMALTSTACK OP_EQUALVERIFY } { all_information.scripts[script_idx].clone() } OP_DEPTH - { 2 } + { 1 } OP_EQUALVERIFY - { StackHash::hash_drop(2) } + { StackHash::hash_drop(1) } OP_FROMALTSTACK OP_EQUALVERIFY OP_TRUE }, diff --git a/src/dsl/plonk/mod.rs b/src/dsl/plonk/mod.rs index 6bbae15..ead4492 100644 --- a/src/dsl/plonk/mod.rs +++ b/src/dsl/plonk/mod.rs @@ -38,8 +38,7 @@ mod test { test_program( cs, script! { - { ldm.write_hash_var.as_ref().unwrap().value.clone() } - { ldm.read_hash_var.as_ref().unwrap().value.clone() } + { ldm.hash_var.as_ref().unwrap().value.clone() } }, ) .unwrap(); @@ -49,8 +48,7 @@ mod test { test_program( cs, script! { - { ldm.write_hash_var.as_ref().unwrap().value.clone() } - { ldm.read_hash_var.as_ref().unwrap().value.clone() } + { ldm.hash_var.as_ref().unwrap().value.clone() } }, ) .unwrap(); @@ -59,8 +57,7 @@ mod test { test_program( cs, script! { - { ldm.write_hash_var.as_ref().unwrap().value.clone() } - { ldm.read_hash_var.as_ref().unwrap().value.clone() } + { ldm.hash_var.as_ref().unwrap().value.clone() } }, ) .unwrap(); @@ -69,8 +66,7 @@ mod test { test_program( cs, script! { - { ldm.write_hash_var.as_ref().unwrap().value.clone() } - { ldm.read_hash_var.as_ref().unwrap().value.clone() } + { ldm.hash_var.as_ref().unwrap().value.clone() } }, ) .unwrap(); @@ -79,8 +75,7 @@ mod test { test_program( cs, script! { - { ldm.write_hash_var.as_ref().unwrap().value.clone() } - { ldm.read_hash_var.as_ref().unwrap().value.clone() } + { ldm.hash_var.as_ref().unwrap().value.clone() } }, ) .unwrap(); @@ -89,8 +84,7 @@ mod test { test_program( cs, script! { - { ldm.write_hash_var.as_ref().unwrap().value.clone() } - { ldm.read_hash_var.as_ref().unwrap().value.clone() } + { ldm.hash_var.as_ref().unwrap().value.clone() } }, ) .unwrap(); @@ -99,8 +93,7 @@ mod test { test_program( cs, script! { - { ldm.write_hash_var.as_ref().unwrap().value.clone() } - { ldm.read_hash_var.as_ref().unwrap().value.clone() } + { ldm.hash_var.as_ref().unwrap().value.clone() } }, ) .unwrap(); @@ -110,8 +103,7 @@ mod test { test_program( cs, script! { - { ldm.write_hash_var.as_ref().unwrap().value.clone() } - { ldm.read_hash_var.as_ref().unwrap().value.clone() } + { ldm.hash_var.as_ref().unwrap().value.clone() } }, ) .unwrap(); @@ -120,8 +112,7 @@ mod test { test_program( cs, script! { - { ldm.write_hash_var.as_ref().unwrap().value.clone() } - { ldm.read_hash_var.as_ref().unwrap().value.clone() } + { ldm.hash_var.as_ref().unwrap().value.clone() } }, ) .unwrap(); @@ -130,8 +121,7 @@ mod test { test_program( cs, script! { - { ldm.write_hash_var.as_ref().unwrap().value.clone() } - { ldm.read_hash_var.as_ref().unwrap().value.clone() } + { ldm.hash_var.as_ref().unwrap().value.clone() } }, ) .unwrap(); @@ -141,8 +131,7 @@ mod test { test_program( cs, script! { - { ldm.write_hash_var.as_ref().unwrap().value.clone() } - { ldm.read_hash_var.as_ref().unwrap().value.clone() } + { ldm.hash_var.as_ref().unwrap().value.clone() } }, ) .unwrap(); @@ -153,8 +142,7 @@ mod test { test_program( cs, script! { - { ldm.write_hash_var.as_ref().unwrap().value.clone() } - { ldm.read_hash_var.as_ref().unwrap().value.clone() } + { ldm.hash_var.as_ref().unwrap().value.clone() } }, ) .unwrap(); @@ -164,8 +152,7 @@ mod test { test_program( cs, script! { - { ldm.write_hash_var.as_ref().unwrap().value.clone() } - { ldm.read_hash_var.as_ref().unwrap().value.clone() } + { ldm.hash_var.as_ref().unwrap().value.clone() } }, ) .unwrap(); @@ -175,8 +162,7 @@ mod test { test_program( cs, script! { - { ldm.write_hash_var.as_ref().unwrap().value.clone() } - { ldm.read_hash_var.as_ref().unwrap().value.clone() } + { ldm.hash_var.as_ref().unwrap().value.clone() } }, ) .unwrap(); @@ -185,8 +171,7 @@ mod test { test_program( cs, script! { - { ldm.write_hash_var.as_ref().unwrap().value.clone() } - { ldm.read_hash_var.as_ref().unwrap().value.clone() } + { ldm.hash_var.as_ref().unwrap().value.clone() } }, ) .unwrap(); @@ -196,8 +181,7 @@ mod test { test_program( cs, script! { - { ldm.write_hash_var.as_ref().unwrap().value.clone() } - { ldm.read_hash_var.as_ref().unwrap().value.clone() } + { ldm.hash_var.as_ref().unwrap().value.clone() } }, ) .unwrap();