Interface StarkSigner

An abstraction of a Stark account, which can be used to sign messages and transactions on StarkEx to execute state changing operations

interface StarkSigner {
    signMessage(message: string): Promise<string>;
    getAddress(): string | Promise<string>;
    getYCoordinate(): Promise<string>;
}

Methods

  • Signs the prefixed-message

    Parameters

    • message: string

    Returns Promise<string>

    the signed prefixed-message

    message - this must be a UTF8-message

    "0x1234"
    
  • Get the Signer address

    Returns string | Promise<string>

    the Signer's checksum address

  • Get the Y-coordinate of the public key

    Returns Promise<string>

    the Y-coordinate of the public key