Skip to content
This repository was archived by the owner on Oct 30, 2024. It is now read-only.

Commit 299feb2

Browse files
committed
Properly separate the thirdparty API in the README
1 parent f19b62d commit 299feb2

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

README.md

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,6 @@ For the V1, V3 and EthSale formats the input is a JSON serialized string. All th
3535

3636
Note: `fromPublicKey()` only accepts uncompressed Ethereum-style public keys, unless the `nonStrict` flag is set to true.
3737

38-
Third party imports:
39-
40-
* `fromEtherCamp(passphrase)` - import a brain wallet used by Ether.Camp
41-
* `fromEtherWallet(input, password)` - import a wallet generated by EtherWallet
42-
* `fromKryptoKit(seed)` - import a wallet from a KryptoKit seed
43-
* `fromQuorumWallet(passphrase, userid)` - import a brain wallet used by Quorum Wallet
44-
45-
To use these, first import the appropriate submodule:
46-
47-
`var thirdparty = require('ethereumjs-wallet/thirdparty')`
48-
4938
Instance methods:
5039

5140
* `getPrivateKey()` - return the private key
@@ -57,6 +46,19 @@ Instance methods:
5746

5847
All of the above instance methods return a Buffer or JSON. Use the `String` suffixed versions for a string output, such as `getPrivateKeyString()`.
5948

49+
## Thirdparty API
50+
51+
Importing various third party wallets is possible through the `thirdparty` submodule:
52+
53+
`var thirdparty = require('ethereumjs-wallet/thirdparty')`
54+
55+
Constructors:
56+
57+
* `fromEtherCamp(passphrase)` - import a brain wallet used by Ether.Camp
58+
* `fromEtherWallet(input, password)` - import a wallet generated by EtherWallet
59+
* `fromKryptoKit(seed)` - import a wallet from a KryptoKit seed
60+
* `fromQuorumWallet(passphrase, userid)` - import a brain wallet used by Quorum Wallet
61+
6062
## HD Wallet API
6163

6264
To use BIP32 HD wallets, first include the `hdkey` submodule:

0 commit comments

Comments
 (0)