Options
All
  • Public
  • Public/Protected
  • All
Menu

Class IdentityManager

Provides identity management for the Steer Protocol

Hierarchy

  • IdentityManager

Index

Constructors

constructor

Properties

config

identity

identity: Identity

ipfsConfig

ipfsConfig: Options

keystore

keystore: Keystore

network

network: NetworkConfig

provider

provider: Provider | Web3Provider

type

type: string

wallet

wallet: Wallet

Methods

Private fileExists

  • fileExists(location: string): Promise<boolean>
  • Utility method to help determines if the identity store exists.

    TODO: Should utilize a general FS/Storage class

    Parameters

    • location: string

    Returns Promise<boolean>

initialize

  • initialize(): Promise<void>
  • Initializes the configured identity provider via the constructor. This is needed because the wallet generation/decryption is asynchrounous and therefore requires a way to wait till the bootstrap/loading process is complete

    Returns Promise<void>

Private prepIdentityStore

  • prepIdentityStore(location: string): Promise<string>
  • Create the identity store location. If the identity store does not exist, it will create the path recursively.

    Parameters

    • location: string

    Returns Promise<string>

Generated using TypeDoc