Skip to content

Commit

Permalink
Add test vectors
Browse files Browse the repository at this point in the history
  • Loading branch information
XuJiandong committed Jan 24, 2024
1 parent 4437740 commit cd565d3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
7 changes: 0 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,3 @@ cd tests/omni_lock_rust && cargo test

See [RFC](https://github.com/nervosnetwork/rfcs/blob/master/rfcs/0042-omnilock/0042-omnilock.md)


## Test Vector

```shell
# Project root directory
ckb-debugger --bin build/omni_lock -f test-vectors/tx_btc_P2PKH_compressed.json -i 0 -s lock
```
3 changes: 3 additions & 0 deletions test-vectors/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

These test vectors require [ckb-debugger](https://github.com/nervosnetwork/ckb-standalone-debugger.git) installed.
Use shell script `run-all.sh` to run all scripts.
6 changes: 6 additions & 0 deletions test-vectors/run-all.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

for file in *.json; do
ckb-debugger --bin ../build/omni_lock -f $file -i 0 -s lock
done

0 comments on commit cd565d3

Please sign in to comment.