You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Find out more information about different [parameters](https://github.com/sphincs/sphincsplus#parameters).
34
+
35
35
* Note: Default hash type: **shake-128f-simple** (Verify cycles: about 70M)
36
36
37
-
## Sample in Dev Blockchain
38
-
**Convert a default Lock to ckb-sphincsplus lock script (in ckb dev)**
37
+
## Tool
38
+
This tool is to **convert a default Lock(SECP256K1/blake160) to quantum resistant lock script.**.
39
39
40
-
1. compile. Hera we use the default options.
41
-
</br>
42
-
Here we will get a sphincsplus_lock file, the size is about 85608bytes.
40
+
Follow steps below:
41
+
42
+
1. compile.
43
+
44
+
By default, sphincsplus_lock file's size is about 85K bytes.
43
45
2. Deploy the compiled contract to the test network.
44
46
</br>
45
47
We use [ckb-cli](https://github.com/nervosnetwork/ckb-cli) to deploy this contract, You can refer to [here](https://github.com/nervosnetwork/ckb-cli/wiki/Handle-Complex-Transaction#a-demo).
@@ -53,15 +55,14 @@ The script uses fixed signature data (tests/sphincsplus/test_data/), Because dif
53
55
We can get a set of key files, including public and private keys.
54
56
* If the contract you compile does not use the default value, it needs to be the same here.
55
57
* Need to save this file.
56
-
4. Convert a secp256k1 default lock script to SPHINCS+ lock script.
58
+
4. Convert a SECP256K1/blake160 lock script to quantum resistant lock script.
57
59
```shell
58
60
cargo run -- cc_to_sphincsplus --tx_hash <tx-hash> --tx_index <index> --key_file key.json --prikey <You can use ckb-cli account export>
59
61
```
60
-
5. Convert a SPHINCS+ lock script to secp256k1 default lock script.
62
+
5. Convert a quantum resistant lock script to SECP256K1/blake160 lock script.
61
63
```shell
62
64
cargo run -- cc_to_sphincsplus --tx_hash <tx-hash> --tx_index <index> --key_file key.json --lock_arg <LOCK-ARG> --sp_tx_hash <SPHINCS+ Script in step 2> --sp_tx_index <index>
0 commit comments