• Sign arbitary bytes similar to lotus wallet sign

    Lotus private key is little endian so you need to reverse the byte order. Use lotusBlsPrivateKeyToBytes to convert.

    Parameters

    • privateKey: Uint8Array
    • type: "SECP256K1" | "BLS"
    • message: string | Uint8Array

    Returns Signature