Learning CKB
Lessons
Dashboard
Connect Wallet
Back to lesson
Quiz: Writing a Hash Lock Script
0 of 8 answered
0%
Question 1 of 8
What is the hash-lock pattern in CKB and when would you use it?
A
A lock script that requires a secp256k1 signature; used for all standard CKB addresses
B
A lock script that stores a hash in args and grants spending rights to whoever provides the matching preimage; used for secret-sharing, HTLCs, and commit-reveal schemes
C
A type script that hashes cell data to prevent tampering; used for immutable data storage
D
A hash map stored in cell data that maps public keys to permissions; used for multi-party access control
Previous
Next
Lessons