@arkade-os/sdk Documentation - v0.4.21
    Preparing search index...

    Interface Identity

    interface Identity {
        compressedPublicKey(): Promise<Uint8Array<ArrayBufferLike>>;
        sign(tx: Transaction, inputIndexes?: number[]): Promise<Transaction>;
        signerSession(): SignerSession;
        signMessage(
            message: Uint8Array,
            signatureType: "schnorr" | "ecdsa",
        ): Promise<Uint8Array<ArrayBufferLike>>;
        xOnlyPublicKey(): Promise<Uint8Array<ArrayBufferLike>>;
    }

    Hierarchy (View Summary)

    Implemented by

    Index

    Methods

    • Sign the provided transaction inputs.

      Parameters

      • tx: Transaction

        Transaction to sign

      • OptionalinputIndexes: number[]

        Optional input indexes to sign. When omitted, the implementation should sign every signable input.

      Returns Promise<Transaction>

    • Sign an arbitrary message using the requested signature type.

      Parameters

      • message: Uint8Array
      • signatureType: "schnorr" | "ecdsa"

      Returns Promise<Uint8Array<ArrayBufferLike>>