cesr
    Preparing search index...

    Class Indexer

    Implements

    Index

    Constructors

    Properties

    code: string
    index: number
    ondex?: number
    raw: Uint8Array
    Code: {
        ECDSA_256k1_Big_Crt_Sig: string;
        ECDSA_256k1_Big_Sig: string;
        ECDSA_256k1_Crt_Sig: string;
        ECDSA_256k1_Sig: string;
        ECDSA_256r1_Big_Crt_Sig: string;
        ECDSA_256r1_Big_Sig: string;
        ECDSA_256r1_Crt_Sig: string;
        ECDSA_256r1_Sig: string;
        Ed25519_Big_Crt_Sig: string;
        Ed25519_Big_Sig: string;
        Ed25519_Crt_Sig: string;
        Ed25519_Sig: string;
        Ed448_Big_Crt_Sig: string;
        Ed448_Big_Sig: string;
        Ed448_Crt_Sig: string;
        Ed448_Sig: string;
    } = IndexCode
    crypto: {
        ecdsa_256k1_sig(raw: Uint8Array, index: number, ondex?: number): Indexer;
        ecdsa_256r1_sig(raw: Uint8Array, index: number, ondex?: number): Indexer;
        ed25519_sig(raw: Uint8Array, index: number, ondex?: number): Indexer;
        ed448_sig(raw: Uint8Array, index: number, ondex?: number): Indexer;
    } = ...

    Accessors

    Methods

    • Convert a Matter frame into an Indexer frame by providing the index and optional ondex.

      Parameters

      • matter: Pick<FrameInit, "code" | "raw">

        The Matter frame to convert

      • index: number

        The main index of the signature

      • Optionalondex: number

        The optional secondary index of the signature

      Returns Indexer

      The created Indexer frame

    • Create a new Indexer frame.

      Note: It is recommended to use the helper methods in Indexer.crypto instead to ensure the correct code is used for the signature type.

      Parameters

      • code: string

        The Indexer code, see Indexer.Code

      • raw: Uint8Array

        The raw signature bytes

      • index: number

        The main index of the signature

      • Optionalondex: number

        The optional secondary index of the signature

      Returns Indexer

    • Parameters

      • input: string | Uint8Array<ArrayBufferLike>

      Returns Indexer