### Mirana (Mainnet) Deployment Parameters Source: https://github.com/cryptape/quantum-resistant-lock-script/blob/main/README.md These are the deployment parameters for the quantum-resistant lock script on the Mirana mainnet. Note that the contract is currently not deployed, so `code_hash` and `tx_hash` are placeholders. ```APIDOC parameter | value --------- | ------------ code_hash | not deployed hash_type | type tx_hash | not deployed index | 0 dep_type | code ``` -------------------------------- ### Compile Default Quantum Resistant Lock Script Source: https://github.com/cryptape/quantum-resistant-lock-script/blob/main/README.md This command compiles the default quantum-resistant lock script contract using a Docker environment. It simplifies the build process by encapsulating dependencies. ```shell make all-via-docker ``` -------------------------------- ### Pudge (Testnet) Deployment Parameters Source: https://github.com/cryptape/quantum-resistant-lock-script/blob/main/README.md These are the deployment parameters for the quantum-resistant lock script on the Pudge testnet. It includes the specific `code_hash` and `tx_hash` for the deployed contract, along with other relevant details. ```APIDOC parameter | value --------- | ------------------------------------------------------------------ code_hash | 0x9bd7e06f3ecf4be0f2fcd2188b23f1b9fcc88e5d4b65a8637b17723bbda3cce8 hash_type | type tx_hash | 0x35f51257673c7a7edd009fa2166e6f8645156207c9da38202f04ba4d94d9e519 index | 0 dep_type | code ``` -------------------------------- ### Generate SPHINCS+ Key File Source: https://github.com/cryptape/quantum-resistant-lock-script/blob/main/README.md This command uses the `ckb-sphincs-tools` to generate a pair of public and private keys for the SPHINCS+ lock script. The `key.json` file produced is essential for subsequent operations and must be securely saved. Ensure the generated keys are compatible with the compiled contract's hash type. ```shell cargo run -- gen-key key.json ``` -------------------------------- ### Convert SECP256K1/blake160 Lock Script to SPHINCS+ Lock Script Source: https://github.com/cryptape/quantum-resistant-lock-script/blob/main/README.md This command converts a standard SECP256K1/blake160 lock script to a quantum-resistant SPHINCS+ lock script. It requires the transaction hash and index of the original lock, the previously generated key file, and the private key for signing. ```shell cargo run -- cc_to_sphincsplus --tx_hash --tx_index --key_file key.json --prikey ``` -------------------------------- ### Convert SPHINCS+ Lock Script to SECP256K1/blake160 Lock Script Source: https://github.com/cryptape/quantum-resistant-lock-script/blob/main/README.md This command converts a quantum-resistant SPHINCS+ lock script back to a standard SECP256K1/blake160 lock script. It requires the transaction details of both the original and SPHINCS+ scripts, the key file, a lock argument, and a specified transaction fee. ```shell cargo run -- cc_to_secp --tx_hash --tx_index --key_file key.json --lock_arg --sp_tx_hash --sp_tx_index --fee 10000 ``` -------------------------------- ### Compile Quantum Resistant Lock Script with Specific Hash Type Source: https://github.com/cryptape/quantum-resistant-lock-script/blob/main/README.md This command compiles the quantum-resistant lock script with a specified hash type (e.g., sphincs-shake-256f) and a 'robust' parameter. Different hash types can lead to significant performance differences during verification. ```shell make all-via-docker PARAMS=sphincs-shake-256f THASH=robust ``` -------------------------------- ### Unlock Cell Locked by Quantum-Resistant Script Source: https://github.com/cryptape/quantum-resistant-lock-script/blob/main/README.md This section outlines the parameters necessary to unlock a cell previously locked by the quantum-resistant script. ```APIDOC Parameters for Cell Unlocking: - code_hash: 0x9bd7e06f3ecf4be0f2fcd2188b23f1b9fcc88e5d4b65a8637b17723bbda3cce8 - hash_type: type - tx_hash: 0x1e3fcf73f02bb98e90239ed01e4fec63dc3469471309a19ee4eec7cfc00a8637 - index: 0 - dep_type: code ``` -------------------------------- ### Generate Cell Locked by Quantum-Resistant Script Source: https://github.com/cryptape/quantum-resistant-lock-script/blob/main/README.md This section describes the parameters required to generate a cell locked by the quantum-resistant script. It notes that the script should use 'hash_type=data1' or 'hash_type=type' to support RISC-V B extensions. ```APIDOC Parameters for Cell Generation: - code_hash: 0x989ab456455509a1c2ad1cb8116b7d209df228144445c741b101ec3e55ee8351 - hash_type: data1 - tx_hash: 0x1a48fb4def03465ab826e56fbf77943db65fad57db19d02279465d954e28be64 - index: 0 - dep_type: code ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.