public class Wallet
extends java.lang.Object
Ethereum wallet file management. For reference, refer to Web3 Secret Storage Definition or the Go Ethereum client implementation.
Note: we don't use the Bouncy Castle Scrypt implementation
SCrypt, as the following parameter assertion results
in failure of the Ethereum reference
Scrypt test vector:
// Only value of r that cost (as an int) could be exceeded for is 1
if (r == 1 && N > 65536)
{
throw new IllegalArgumentException("Cost parameter N must be > 1 and < 65536.");
}
| Constructor and Description |
|---|
Wallet() |
| Modifier and Type | Method and Description |
|---|---|
static WalletFile |
create(java.lang.String password,
ECKeyPair ecKeyPair) |
static ECKeyPair |
decrypt(java.lang.String password,
WalletFile walletFile) |
public static WalletFile create(java.lang.String password, ECKeyPair ecKeyPair) throws CipherException
CipherExceptionpublic static ECKeyPair decrypt(java.lang.String password, WalletFile walletFile) throws CipherException
CipherException