ckb-cell / rgbpp-sdk

Utilities for Bitcoin and RGB++ asset integration
ISC License
53 stars 16 forks source link

Use Single Use Lock instead of secp256k1 lock to mint xUDT for examples #267

Open duanyytop opened 1 month ago

duanyytop commented 1 month ago

Single Use Lock is similar to TypeID, using the uniqueness of the CKB out point to ensure the cell can only be unlocked once. It can be used for limited issuance of xUDT.

Now the xUDT example of rgbpp-sdk uses the secp256k1_blake160 lock to issue xUDT, which cannot ensure limited issuance. Therefore, using Single Use Lock to issue xUDT will better meet the needs of most Dapps.