Skip to content

Commit cca19d0

Browse files
committed
update readme, add flags description
1 parent 8765791 commit cca19d0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Diff for: contracts/ckb-bitcoin-spv-type-lock/README.md

+7
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ There are 2 kinds of cells in a Bitcoin SPV instance:
5252
- tip client cell id
5353
```
5454
55+
- Flags
56+
57+
Flags is the last part of `args` and takes up one byte. The highest two bits
58+
are used to indicate different btc chain types. see [btc chain type] for details.
59+
5560
### Operations
5661

5762
There are 4 kinds of operations:
@@ -273,3 +278,5 @@ When you want to verify a transaction with Bitcoin SPV Client cell:
273278
[Section "Code Locating"]: https://github.com/nervosnetwork/rfcs/blob/v2020.01.15/rfcs/0022-transaction-structure/0022-transaction-structure.md#code-locating
274279
[CKB RFC 0032]: https://github.com/nervosnetwork/rfcs/blob/dff5235616e5c7aec706326494dce1c54163c4be/rfcs/0032-ckb-vm-version-selection/0032-ckb-vm-version-selection.md#specification
275280
[CKB RFC 0051]: https://github.com/nervosnetwork/rfcs/blob/dff5235616e5c7aec706326494dce1c54163c4be/rfcs/0051-ckb2023/0051-ckb2023.md#ckb-vm-v2
281+
282+
[btc chain type]: https://github.com/ckb-cell/ckb-bitcoin-spv/blob/bfc71d7daf17e96f34e8e287f45254e512383330/verifier/src/constants.rs#L3

0 commit comments

Comments
 (0)