Skip to content

Commit 71cefaa

Browse files
committed
Update README.md
1 parent e2eb59a commit 71cefaa

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

README.md

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# quantum-resistant-lock-script
2-
Qantum resistant lock script on CKB, using SPHINCS+
3-
4-
## SPHINCS+
2+
Quantum resistant lock script on CKB, using [SPHINCS+](https://github.com/sphincs/sphincsplus).
53

64
## Build
75

@@ -32,14 +30,18 @@ The script uses fixed signature data (tests/sphincsplus/test_data/), Because dif
3230
| haraka simple | 27.5M | 73.9M | 39.2M | 105.8M | 60.4M | 114.9M |
3331
| haraka robust | 45.7M | 119.8M | 70.5M | 182.7M | 102.8M | 193.3M |
3432

33+
Find out more information about different [parameters](https://github.com/sphincs/sphincsplus#parameters).
34+
3535
* Note: Default hash type: **shake-128f-simple** (Verify cycles: about 70M)
3636

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.**.
3939

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.
4345
2. Deploy the compiled contract to the test network.
4446
</br>
4547
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
5355
We can get a set of key files, including public and private keys.
5456
* If the contract you compile does not use the default value, it needs to be the same here.
5557
* 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.
5759
``` shell
5860
cargo run -- cc_to_sphincsplus --tx_hash <tx-hash> --tx_index <index> --key_file key.json --prikey <You can use ckb-cli account export>
5961
```
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.
6163
``` shell
6264
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>
6365
```
6466

65-
6667
## Deployment on testnet
6768
TODO

0 commit comments

Comments
 (0)