ethers.js/src.ts/wallet/index.ts

48 lines
1.3 KiB
TypeScript
Raw Normal View History

2022-11-28 05:48:13 +03:00
/**
* When interacting with Ethereum, it is necessary to use a private
* key authenticate actions by signing a payload.
*
* Wallets are the simplest way to expose the concept of an
* //Externally Owner Account// (EOA) as it wraps a private key
* and supports high-level methods to sign common types of interaction
* and send transactions.
*
* The class most developers will want to use is [[Wallet]], which
* can load a private key directly or from any common wallet format.
*
* The [[HDNodeWallet]] can be used when it is necessary to access
* low-level details of how an HD wallets are derived, exported
* or imported.
*
2023-02-13 05:21:11 +03:00
* @_section: api/wallet:Wallets [about-wallets]
2022-11-28 05:48:13 +03:00
*/
export { BaseWallet } from "./base-wallet.js";
2022-09-05 23:14:43 +03:00
export {
defaultPath,
getAccountPath, getIndexedAccountPath,
2022-09-05 23:14:43 +03:00
HDNodeWallet,
HDNodeVoidWallet,
} from "./hdwallet.js";
2022-09-16 05:31:00 +03:00
2022-09-05 23:14:43 +03:00
export { isCrowdsaleJson, decryptCrowdsaleJson } from "./json-crowdsale.js";
2022-09-16 05:31:00 +03:00
2022-09-05 23:14:43 +03:00
export {
isKeystoreJson,
decryptKeystoreJsonSync, decryptKeystoreJson,
2022-11-28 05:48:13 +03:00
encryptKeystoreJson, encryptKeystoreJsonSync
2022-09-05 23:14:43 +03:00
} from "./json-keystore.js";
2022-09-16 05:31:00 +03:00
2022-09-05 23:14:43 +03:00
export { Mnemonic } from "./mnemonic.js";
2022-09-16 05:31:00 +03:00
2022-09-05 23:14:43 +03:00
export { Wallet } from "./wallet.js";
2022-09-16 05:31:00 +03:00
export type { CrowdsaleAccount } from "./json-crowdsale.js";
2022-09-05 23:14:43 +03:00
export type {
KeystoreAccount, EncryptOptions
2022-09-05 23:14:43 +03:00
} from "./json-keystore.js"