Skip to content

Commit

Permalink
Add testcase : EOS Tron Bitcoin Dogecoin (#1)
Browse files Browse the repository at this point in the history
* Add testcase : EOS Tron Bitcoin Dogecoin
  • Loading branch information
joii2020 authored Jan 8, 2024
1 parent 0b55623 commit dd9f6a1
Show file tree
Hide file tree
Showing 6 changed files with 596 additions and 20 deletions.
2 changes: 1 addition & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const BINARIES: &[(&str, &str)] = &[
),
(
"omni_lock",
"2010378214cc62a9c0c48426b553f73bff80e063b015c9079e93008f3da3e971",
"dea31e1f104cf6a26ee3cbace40f6fa70e2deb556cd12fdc23eae15889d0d37b",
),
];

Expand Down
2 changes: 1 addition & 1 deletion c/ckb_identity.h
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ int convert_btc_message_variant(const uint8_t *msg, size_t msg_len,
SHA256_CTX sha256_ctx2;
sha256_init(&sha256_ctx2);
sha256_update(&sha256_ctx2, new_msg, SHA256_SIZE);
sha256_final(&sha256_ctx, new_msg);
sha256_final(&sha256_ctx2, new_msg);
return 0;
}

Expand Down
101 changes: 85 additions & 16 deletions tests/omni_lock_rust/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions tests/omni_lock_rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,6 @@ sha3 = "0.9.1"
ckb-vm-debug-utils = { git = "https://github.com/nervosnetwork/ckb-vm-debug-utils.git", rev = "f72995f" }
gdb-remote-protocol = { git = "https://github.com/luser/rust-gdb-remote-protocol", rev = "565ab0c" }
ckb-vm = { version = "=0.20.0-rc2", features = ["detect-asm"] }
ripemd = "0.1.3"
sha2 = "0.10.6"
hex = "0.4.3"
Loading

0 comments on commit dd9f6a1

Please sign in to comment.