Documentation

    Ledger integrates with the Sui blockchain to provide signing capabilities using Ledger devices.

    Hierarchy (View Summary, Expand)

    Index

    Constructors

    • Creates an instance of LedgerSigner. It's expected to call the static fromDerivationPath method to create an instance.

      Parameters

      Returns LedgerSigner

      const signer = await LedgerSigner.fromDerivationPath(derivationPath, options);
      

    Methods

    • Retrieves the key scheme used by this signer.

      Returns "ED25519"

    • Generic signing is not supported by Ledger.

      Returns never

      Always throws an error indicating generic signing is unsupported.

    • Generic signing is not supported by Ledger.

      Returns never

      Always throws an error indicating generic signing is unsupported.

    • Returns string

    • Prepares the signer by fetching and setting the public key from a Ledger device. It is recommended to initialize an LedgerSigner instance using this function.

      Parameters

      • derivationPath: string
      • ledgerClient: Sui
      • suiClient: SuiClient

      Returns Promise<LedgerSigner>

      A promise that resolves once a LedgerSigner instance is prepared (public key is set).

    MMNEPVFCICPMFPCPTTAAATR