Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Identity

Hierarchy

  • Identity

Index

Constructors

constructor

  • new Identity(__namedParameters: { address: string; defaultUsername: undefined | string; keyPair: IdentityKeyPair; profile: undefined | Profile; usernames: undefined | string[] }): Identity

Properties

address

address: string

Optional defaultUsername

defaultUsername: undefined | string

keyPair

Optional profile

profile: Profile

usernames

usernames: string[]

Methods

appPrivateKey

  • appPrivateKey(appDomain: string): string

fetchNames

  • fetchNames(): Promise<string[]>

makeAuthResponse

  • makeAuthResponse(__namedParameters: { appDomain: string; gaiaUrl: string; scopes: string[]; stxAddress: undefined | string; transitPublicKey: string }): Promise<string>
  • Parameters

    • __namedParameters: { appDomain: string; gaiaUrl: string; scopes: string[]; stxAddress: undefined | string; transitPublicKey: string }
      • appDomain: string
      • gaiaUrl: string
      • scopes: string[]
      • stxAddress: undefined | string
      • transitPublicKey: string

    Returns Promise<string>

profileUrl

  • profileUrl(gaiaUrl: string): Promise<string>

refresh

Generated using TypeDoc