CCC Docs
    Preparing search index...

    Function encodeOmniLockWitnessLock

    • Encode a signature into the OmniLockWitnessLock molecule table format.

      The result is suitable for WitnessArgs.lock when the Omnilock cell uses a signature-based auth mode (secp256k1, Ethereum, Bitcoin, CKB multisig, owner lock, etc.) and does not use the administrator (omni_identity) or preimage fields.

      Parameters

      • signature: Bytes

        The raw signature bytes.

      Returns Bytes

      The encoded OmniLockWitnessLock bytes.