near-api-js - v7.0.4
    Preparing search index...

    Class SignerAbstract

    General signing interface, can be used for in memory signing, RPC singing, external wallet, HSM, etc.

    The signer must return a valid PublicKey from getPublicKey(), and must implement raw byte signing that can be verified with the corresponding public key. (To verify the signature, serialize and hash transaction/delegate action, or get payload hash for NEP-413 message from utils.ts and verify with the public key).

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    • Implement this method to sign given bytes payload.

      Parameters

      • bytes: Uint8Array

        The payload to sign.

      Returns Promise<Uint8Array<ArrayBufferLike>>

      • Promise of the bytes representation of the signature.