Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Wallet

Index

Constructors

Properties

bitcoinPublicKeychain: string
chain: ChainID
configPrivateKey: string
encryptedBackupPhrase: string
firstBitcoinAddress: string
identities: Identity[]
identityAddresses: string[]
identityKeypairs: IdentityKeyPair[]
identityPublicKeychain: string
stacksPrivateKey: Buffer
walletConfig?: WalletConfig

Methods

  • Parameters

    • gaiaHubUrl: string

    Returns Promise<GaiaHubConfig>

  • createNewIdentity(password: string): Promise<Identity>
  • Parameters

    • password: string

    Returns Promise<Identity>

  • Parameters

    Returns Promise<WalletConfig>

  • Returns WalletSigner

  • restoreIdentities(__namedParameters: { gaiaReadURL: string; rootNode: BIP32Interface }): Promise<Wallet>
  • Restore all previously used identities. This is meant to be used when 'restoring' a wallet. First, it will check for a walletConfig. If present, then we use that to determine how many identities to generate, and auto-populate their username.

    If walletConfig is empty, then this is being restored from an authenticator that doesn't support walletConfig. In that case, we will recursively generate identities, and check for on-chain names.

    Parameters

    • __namedParameters: { gaiaReadURL: string; rootNode: BIP32Interface }
      • gaiaReadURL: string
      • rootNode: BIP32Interface

    Returns Promise<Wallet>

  • Parameters

    Returns Promise<void>

  • updateConfigForReuseWarning(__namedParameters: { gaiaConfig: GaiaHubConfig }): Promise<void>
  • Parameters

    Returns Promise<void>

  • updateConfigWithAuth(__namedParameters: { app: ConfigApp; gaiaConfig: GaiaHubConfig; identityIndex: number }): Promise<void>
  • Parameters

    Returns Promise<void>

  • createAccount(__namedParameters: { chain: ChainID; encryptedBackupPhrase: string; identitiesToGenerate?: number; rootNode: BIP32Interface }): Promise<Wallet>
  • Parameters

    • __namedParameters: { chain: ChainID; encryptedBackupPhrase: string; identitiesToGenerate?: number; rootNode: BIP32Interface }
      • chain: ChainID
      • encryptedBackupPhrase: string
      • Optional identitiesToGenerate?: number
      • rootNode: BIP32Interface

    Returns Promise<Wallet>

  • Parameters

    Returns Promise<Wallet>

  • generateStrong(password: string, chain: ChainID): Promise<Wallet>
  • Parameters

    Returns Promise<Wallet>

  • restore(password: string, seedPhrase: string, chain: ChainID): Promise<Wallet>
  • Parameters

    • password: string
    • seedPhrase: string
    • chain: ChainID

    Returns Promise<Wallet>

Generated using TypeDoc