index.ts 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /**
  2. * When interacting with Ethereum, it is necessary to use a private
  3. * key authenticate actions by signing a payload.
  4. *
  5. * Wallets are the simplest way to expose the concept of an
  6. * //Externally Owner Account// (EOA) as it wraps a private key
  7. * and supports high-level methods to sign common types of interaction
  8. * and send transactions.
  9. *
  10. * The class most developers will want to use is [[Wallet]], which
  11. * can load a private key directly or from any common wallet format.
  12. *
  13. * The [[HDNodeWallet]] can be used when it is necessary to access
  14. * low-level details of how an HD wallets are derived, exported
  15. * or imported.
  16. *
  17. * @_section: api/wallet:Wallets [about-wallets]
  18. */
  19. export { BaseWallet } from "./base-wallet.js";
  20. export {
  21. defaultPath,
  22. getAccountPath, getIndexedAccountPath,
  23. HDNodeWallet,
  24. HDNodeVoidWallet,
  25. } from "./hdwallet.js";
  26. export { isCrowdsaleJson, decryptCrowdsaleJson } from "./json-crowdsale.js";
  27. export {
  28. isKeystoreJson,
  29. decryptKeystoreJsonSync, decryptKeystoreJson,
  30. encryptKeystoreJson, encryptKeystoreJsonSync
  31. } from "./json-keystore.js";
  32. export { Mnemonic } from "./mnemonic.js";
  33. export { Wallet } from "./wallet.js";
  34. export type { CrowdsaleAccount } from "./json-crowdsale.js";
  35. export type {
  36. KeystoreAccount, EncryptOptions
  37. } from "./json-keystore.js"