Skip to content

Commit ee4d11a

Browse files
committed
update readme, add flags description
1 parent 6891e15 commit ee4d11a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

contracts/ckb-bitcoin-spv-type-lock/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ A Bitcoin SPV instance contains two types of cells: **SPV info cell** and **SPV
4545
- tip client cell id
4646
```
4747

48+
- Flags
49+
50+
Flags is the last part of `args` and takes up one byte. The highest two bits
51+
are used to indicate different btc chain types. see [btc chain type] for details.
52+
4853
### Operations
4954

5055
There are 4 kinds of operations in the Bitcoin SPV type script:
@@ -239,3 +244,5 @@ To verify a transaction using the Bitcoin SPV Client cell, follow these steps:
239244
[Section "Code Locating"]: https://github.com/nervosnetwork/rfcs/blob/v2020.01.15/rfcs/0022-transaction-structure/0022-transaction-structure.md#code-locating
240245
[CKB RFC 0032]: https://github.com/nervosnetwork/rfcs/blob/dff5235616e5c7aec706326494dce1c54163c4be/rfcs/0032-ckb-vm-version-selection/0032-ckb-vm-version-selection.md#specification
241246
[CKB RFC 0051]: https://github.com/nervosnetwork/rfcs/blob/dff5235616e5c7aec706326494dce1c54163c4be/rfcs/0051-ckb2023/0051-ckb2023.md#ckb-vm-v2
247+
248+
[btc chain type]: https://github.com/ckb-cell/ckb-bitcoin-spv/blob/bfc71d7daf17e96f34e8e287f45254e512383330/verifier/src/constants.rs#L3

0 commit comments

Comments
 (0)