File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
contracts/ckb-bitcoin-spv-type-lock Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,11 @@ A Bitcoin SPV instance contains two types of cells: **SPV info cell** and **SPV
45
45
- tip client cell id
46
46
` ` `
47
47
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
+
48
53
# ## Operations
49
54
50
55
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:
239
244
[Section "Code Locating"] : https://github.com/nervosnetwork/rfcs/blob/v2020.01.15/rfcs/0022-transaction-structure/0022-transaction-structure.md#code-locating
240
245
[CKB RFC 0032] : https://github.com/nervosnetwork/rfcs/blob/dff5235616e5c7aec706326494dce1c54163c4be/rfcs/0032-ckb-vm-version-selection/0032-ckb-vm-version-selection.md#specification
241
246
[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
You can’t perform that action at this time.
0 commit comments