public static class ECKeyPair.ECPublicKey
extends io.neow3j.io.NeoSerializable
| Constructor and Description |
|---|
ECPublicKey() |
ECPublicKey(java.math.BigInteger publicKey)
Creates a new instance from the given encoded public key.
|
ECPublicKey(byte[] publicKey)
Creates a new instance from the given encoded public key.
|
ECPublicKey(org.bouncycastle.math.ec.ECPoint ecPoint)
Creates a new
ECKeyPair.ECPublicKey based on a EC point (ECPoint). |
ECPublicKey(java.lang.String publicKey)
Creates a new instance from the given encoded public key in hex format.
|
| Modifier and Type | Method and Description |
|---|---|
void |
deserialize(io.neow3j.io.BinaryReader reader) |
boolean |
equals(java.lang.Object o) |
java.security.spec.ECPoint |
getECPoint() |
byte[] |
getEncoded(boolean compressed)
Gets this public key's elliptic curve point encoded as defined in section 2.3.3 of
SEC1.
|
int |
getSize() |
int |
hashCode() |
void |
serialize(io.neow3j.io.BinaryWriter writer) |
public ECPublicKey()
public ECPublicKey(java.lang.String publicKey)
publicKey - The public key in hex format.public ECPublicKey(org.bouncycastle.math.ec.ECPoint ecPoint)
ECKeyPair.ECPublicKey based on a EC point (ECPoint).ecPoint - The EC point (x,y) to construct the public key.public ECPublicKey(byte[] publicKey)
publicKey - The public key.public ECPublicKey(java.math.BigInteger publicKey)
publicKey - The public key.public byte[] getEncoded(boolean compressed)
compressed - If the EC point should be encoded in compressed or uncompressed
format.public java.security.spec.ECPoint getECPoint()
public void deserialize(io.neow3j.io.BinaryReader reader)
throws io.neow3j.io.exceptions.DeserializationException
io.neow3j.io.exceptions.DeserializationExceptionpublic void serialize(io.neow3j.io.BinaryWriter writer)
throws java.io.IOException
java.io.IOExceptionpublic int getSize()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object