Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Identity

If you need to integrate a custom identity system or signing functionality, you can extend this class (or ReadonlyIdentity).

Hierarchy

Implements

  • IIndentity

Index

Constructors

Properties

Methods

Constructors

constructor

  • new Identity(publicKey: string): Identity
  • Parameters

    • publicKey: string

    Returns Identity

Properties

Readonly bitcloutPublicKey

bitcloutPublicKey: string

Public key shown on account's bitclout profile

Readonly canSign

canSign: true = true

Methods

Abstract signJWT

  • signJWT(): Promise<string>
  • Must sign and return an empty JWT using the account's private key

    Returns Promise<string>

Abstract signTransaction

  • signTransaction(transactionHex: string): Promise<string>
  • Must take an unsigned transaction hex and return a signed hex that can be submitted to BitClout.

    Parameters

    • transactionHex: string

    Returns Promise<string>

Generated using TypeDoc