Closed Flouse closed 5 months ago
As shown in the above code, we estimate the size of the BTC time cell using the commonly used lock scripts (JoyID, Secp256k1/blake160, etc.)as a reference and leave redundancy as the capacity of the RGBPP cell. Thus paymaster cells will be not required.
If someone tries to use a larger lock script as the receiver of the BTC time cell, the SDK will throw an exception.
context: https://github.com/ckb-cell/rgbpp-sdk/blob/de884dd31842f55a6b051e73b7765b8311f05f6a/packages/ckb/src/utils/ckb-tx.ts#L12-L27
Discussion
The default rgbpp lock cell may need to be larger, or when jumping from BTC to CKB (a.k.a. L1 -> L2, rpbpp_lock -> btc_time_lock), a paymaster cell will always be required.