Documentation
    Preparing search index...

    Web signer implementation

    For use in browser environments

    Hierarchy

    • Signer
      • WebSigner
    Index

    Constructors

    • Creates a new watch-only signer

      Parameters

      • address: string

        The wallet address to watch

      Returns WebSigner

    Methods

    • Gets the key scheme for this signer

      Returns any

      Key scheme string (ed25519 for compatibility)

    • Gets the public key information for this signer

      Returns a mock public key object that provides the wallet address but cannot be used for actual cryptographic operations.

      Returns any

      Mock public key object

    • Signs transaction bytes (not implemented for watch-only mode)

      This method is required by the Signer interface but cannot actually sign transactions in watch-only mode.

      Parameters

      • bytes: Uint8Array

        Transaction bytes to sign

      Returns Promise<Uint8Array<ArrayBufferLike>>

      Promise - Empty signature (not valid)

    • Parameters

      • __namedParameters: SignAndExecuteOptions

      Returns Promise<TransactionResponse>

    • Signs provided personal message by calling signWithIntent() with a PersonalMessage provided as intent scope

      Parameters

      • bytes: Uint8Array

      Returns Promise<SignatureWithBytes>

    • Signs provided transaction by calling signWithIntent() with a TransactionData provided as intent scope

      Parameters

      • bytes: Uint8Array

      Returns Promise<SignatureWithBytes>

    • Sign messages with a specific intent. By combining the message bytes with the intent before hashing and signing, it ensures that a signed message is tied to a specific purpose and domain separator is provided

      Parameters

      • bytes: Uint8Array
      • intent: IntentScope

      Returns Promise<SignatureWithBytes>

    • Returns string