Package org.web3j.crypto
Class ECKeyPair
java.lang.Object
org.web3j.crypto.ECKeyPair
- Direct Known Subclasses:
Bip32ECKeyPair
Elliptic Curve SECP-256k1 generated key pair.
-
Constructor Details
-
ECKeyPair
-
-
Method Details
-
getPrivateKey
-
getPublicKey
-
sign
Sign a hash with the private key of this key pair.- Parameters:
transactionHash- the hash to sign- Returns:
- An
ECDSASignatureof the hash
-
create
-
create
-
create
-
equals
-
hashCode
public int hashCode()
-