public class ECKeyPair extends Object
| 构造器和说明 |
|---|
ECKeyPair(BigInteger privateKey,
BigInteger publicKey) |
| 限定符和类型 | 方法和说明 |
|---|---|
static ECKeyPair |
create(BigInteger privateKey) |
static ECKeyPair |
create(byte[] privateKey) |
static ECKeyPair |
create(KeyPair keyPair) |
boolean |
equals(Object o) |
BigInteger |
getPrivateKey() |
BigInteger |
getPublicKey() |
int |
hashCode() |
ECDSASignature |
sign(byte[] transactionHash)
Sign a hash with the private key of this key pair.
|
public ECKeyPair(BigInteger privateKey, BigInteger publicKey)
public BigInteger getPrivateKey()
public BigInteger getPublicKey()
public ECDSASignature sign(byte[] transactionHash)
transactionHash - the hash to signECDSASignature of the hashpublic static ECKeyPair create(BigInteger privateKey)
public static ECKeyPair create(byte[] privateKey)
Copyright © 2021. All rights reserved.