-
public final class EthereumKeystore
Standard Ethereum Keystore file represent, provided some helper functions to parse/generate Ethereum keystore JSON
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
EthereumKeystore.Companion
-
Field Summary
Fields Modifier and Type Field Description private String
address
private String
keystoreStr
-
Constructor Summary
Constructors Constructor Description EthereumKeystore(String keystoreJSON)
create keystore from wallet address and keystore JSON, if the json is not valid Ethereum keystore JSON, an exception raised
-
Method Summary
Modifier and Type Method Description final String
getAddress()
final Unit
setAddress(String address)
final String
getKeystoreStr()
final Unit
setKeystoreStr(String keystoreStr)
-
-
Constructor Detail
-
EthereumKeystore
EthereumKeystore(String keystoreJSON)
create keystore from wallet address and keystore JSON, if the json is not valid Ethereum keystore JSON, an exception raised- Parameters:
keystoreJSON
-a JSON string that represents the keystore, throws exception if this keystore string is invalid
-
-
Method Detail
-
getAddress
final String getAddress()
-
setAddress
final Unit setAddress(String address)
-
getKeystoreStr
final String getKeystoreStr()
-
setKeystoreStr
final Unit setKeystoreStr(String keystoreStr)
-
-
-
-