Constructors

Properties

Accessors

Methods

Constructors

Properties

data: Uint8Array
type: "SECP256K1" | "BLS"

Accessors

Methods

  • Encodes the signature as a JSON object in the Lotus RPC format.

    Returns {
        Data: string;
        Type: 1 | 2;
    }

    • Data: string
    • Type: 1 | 2
  • Encodes the signature as a Lotus-style hex encoded string

    Lotus adds 0x01 or 0x02 to the signature depending on the type.

    Returns string

    Hex encoded signature