CCC Docs
    Preparing search index...

    An abstract class extending the Signer class for Bitcoin-like signing operations. This class provides methods to get Bitcoin account, public key, and internal address, as well as signing transactions.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    • Gets the Bitcoin account associated with the signer.

      Returns Promise<string>

      A promise that resolves to a string representing the Bitcoin account.

    • Gets the Bitcoin public key associated with the signer.

      Returns Promise<`0x${string}`>

      A promise that resolves to a HexLike value representing the Bitcoin public key.

    • Ensure the BTC network is the same as CKB network.

      Returns Promise<void>

    • Returns Promise<undefined | string>

    • Register a listener to be called when this signer is replaced.

      Parameters

      • listener: () => void

      Returns () => void

      A function for unregister

    • Connects to the signer.

      Returns Promise<void>

      A promise that resolves when the connection is complete.

    • Check if the signer is connected.

      Returns Promise<boolean>

      A promise that resolves the connection status.

    • Signs a message and returns signature only. This method is not implemented and should be overridden by subclasses.

      Parameters

      • message: BytesLike

        The message to sign, as a string or BytesLike object.

      Returns Promise<string>

      A promise that resolves to the signature as a string.

      Will throw an error if not implemented.