Signer from Nostr private key Support nsec and hex format

Hierarchy (view full)

Constructors

Properties

CKB_SIG_HASH_ALL_TAG: string = "ckb_sighash_all"
CKB_UNLOCK_EVENT_KIND: number = 23334
CKB_UNLOCK_EVENT_CONTENT: string = "Signing a CKB transaction\n\nIMPORTANT: Please verify the integrity and authenticity of connected Nostr client before signing this message\n"
publicKey: `0x${string}`
client_: Client

Accessors

Methods

  • Find transactions of this signer

    Parameters

    Returns AsyncGenerator<{
        txHash: `0x${string}`;
        blockNumber: bigint;
        txIndex: bigint;
        isInput: boolean;
        cellIndex: bigint;
    }, any, any>

    A async generator that yields all matches transactions

  • Find transactions of this signer

    Parameters

    Returns AsyncGenerator<{
        txHash: `0x${string}`;
        blockNumber: bigint;
        txIndex: bigint;
        cells: {
            isInput: boolean;
            cellIndex: bigint;
        }[];
    }, any, any>

    A async generator that yields all matches transactions

  • Find transactions of this signer

    Parameters

    Returns AsyncGenerator<{
        txHash: `0x${string}`;
        blockNumber: bigint;
        txIndex: bigint;
        isInput: boolean;
        cellIndex: bigint;
    } | {
        txHash: `0x${string}`;
        blockNumber: bigint;
        txIndex: bigint;
        cells: {
            isInput: boolean;
            cellIndex: bigint;
        }[];
    }, any, any>

    A async generator that yields all matches transactions