public class EthAccount extends AbstractAccount implements Account
| Modifier and Type | Field and Description |
|---|---|
static String |
AddressPrefix |
address, privateKey, publicKey| Modifier and Type | Method and Description |
|---|---|
static Account |
create()
create account by Secp256K1.
|
static Account |
create(BigInteger privateKey)
create by private key.
|
static Account |
create(KeyPair keyPair)
create account by keypair.
|
byte[] |
publicKey()
get public key hex.
|
byte[] |
sign(byte[] data)
sign data.
|
address, privateKeyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddress, privateKeypublic static final String AddressPrefix
public static Account create()
public static Account create(KeyPair keyPair)
keyPair - public static Account create(BigInteger privateKey)
privateKey - public byte[] publicKey()
AccountCopyright © 2022 IoTeX Group. All rights reserved.