public class ECKeyPair
extends java.lang.Object
构造器和说明 |
---|
ECKeyPair(java.math.BigInteger privateKey,
java.math.BigInteger publicKey) |
限定符和类型 | 方法和说明 |
---|---|
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 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
在类中 java.lang.Object
public int hashCode()
hashCode
在类中 java.lang.Object