public class KeyPair
extends java.lang.Object
| Constructor and Description |
|---|
KeyPair(SECP256K1.KeyPair keyPair) |
KeyPair(java.lang.String hexPrivateKey) |
| Modifier and Type | Method and Description |
|---|---|
static KeyPair |
generate() |
SECP256K1.KeyPair |
getRawPair() |
static byte[] |
publicKeyToAddress(SECP256K1.PublicKey pubKey) |
static java.lang.String |
publicKeyToBase58CheckAddress(SECP256K1.PublicKey pubKey) |
static java.lang.String |
publicKeyToHexAddress(SECP256K1.PublicKey pubKey) |
static byte[] |
signTransaction(byte[] txid,
KeyPair keyPair)
Return a signature message in byte[]
|
java.lang.String |
toBase58CheckAddress() |
java.lang.String |
toHexAddress() |
java.lang.String |
toPrivateKey() |
java.lang.String |
toPublicKey() |
public KeyPair(SECP256K1.KeyPair keyPair)
public KeyPair(java.lang.String hexPrivateKey)
public SECP256K1.KeyPair getRawPair()
public static KeyPair generate()
public java.lang.String toPrivateKey()
public java.lang.String toPublicKey()
public java.lang.String toBase58CheckAddress()
public java.lang.String toHexAddress()
public static byte[] publicKeyToAddress(SECP256K1.PublicKey pubKey)
public static java.lang.String publicKeyToBase58CheckAddress(SECP256K1.PublicKey pubKey)
public static java.lang.String publicKeyToHexAddress(SECP256K1.PublicKey pubKey)
public static byte[] signTransaction(byte[] txid,
KeyPair keyPair)
txid - the transaction hash waiting for signature