json-crowdsale.d.ts 929 B

123456789101112131415161718192021222324252627
  1. /**
  2. * @_subsection: api/wallet:JSON Wallets [json-wallets]
  3. */
  4. /**
  5. * The data stored within a JSON Crowdsale wallet is fairly
  6. * minimal.
  7. */
  8. export type CrowdsaleAccount = {
  9. privateKey: string;
  10. address: string;
  11. };
  12. /**
  13. * Returns true if %%json%% is a valid JSON Crowdsale wallet.
  14. */
  15. export declare function isCrowdsaleJson(json: string): boolean;
  16. /**
  17. * Before Ethereum launched, it was necessary to create a wallet
  18. * format for backers to use, which would be used to receive ether
  19. * as a reward for contributing to the project.
  20. *
  21. * The [[link-crowdsale]] format is now obsolete, but it is still
  22. * useful to support and the additional code is fairly trivial as
  23. * all the primitives required are used through core portions of
  24. * the library.
  25. */
  26. export declare function decryptCrowdsaleJson(json: string, _password: string | Uint8Array): CrowdsaleAccount;
  27. //# sourceMappingURL=json-crowdsale.d.ts.map