public class IotexAccount extends AbstractAccount implements Account
| Modifier and Type | Field and Description |
|---|---|
static String |
AddressPrefix |
address, privateKey, publicKey| Modifier and Type | Method and Description |
|---|---|
static String |
computeAddress(BigInteger publicKey) |
static String |
convertToETHAddress(String address) |
static Account |
create()
create account by Secp256K1.
|
static Account |
create(BigInteger privateKey)
create by private key.
|
static Account |
create(byte[] privateKey)
create by private key byte.
|
static Account |
create(KeyPair keyPair)
create account by keypair.
|
static Account |
create(String privateKey)
create by private key string.
|
String |
getHexAddress() |
byte[] |
publicKey()
get public key hex.
|
String |
recover(byte[] signature,
byte[] message) |
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 static Account create(byte[] privateKey)
privateKey - public static Account create(String privateKey)
privateKey - public static String computeAddress(BigInteger publicKey)
public String getHexAddress()
public byte[] publicKey()
Accountpublic byte[] sign(byte[] data)
Accountpublic String recover(byte[] signature, byte[] message)
Copyright © 2022 IoTeX Group. All rights reserved.