public class ECKeyPair
extends java.lang.Object
| Constructor and Description |
|---|
ECKeyPair(java.math.BigInteger privateKey,
java.math.BigInteger publicKey) |
| Modifier and Type | Method and Description |
|---|---|
static ECKeyPair |
create(java.math.BigInteger privateKey) |
static ECKeyPair |
create(byte[] privateKey) |
static ECKeyPair |
create(java.security.KeyPair keyPair) |
boolean |
equals(java.lang.Object o) |
java.math.BigInteger |
getPrivateKey() |
java.math.BigInteger |
getPublicKey() |
int |
hashCode() |
ECDSASignature |
sign(byte[] transactionHash)
Sign a hash with the private key of this key pair.
|
public ECKeyPair(java.math.BigInteger privateKey,
java.math.BigInteger publicKey)
public java.math.BigInteger getPrivateKey()
public java.math.BigInteger getPublicKey()
public ECDSASignature sign(byte[] transactionHash)
transactionHash - the hash to signECDSASignature of the hashpublic static ECKeyPair create(java.security.KeyPair keyPair)
public static ECKeyPair create(java.math.BigInteger privateKey)
public static ECKeyPair create(byte[] privateKey)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object