public static class SECP256K1.PublicKey
extends java.lang.Object
implements java.security.PublicKey
| Modifier and Type | Method and Description |
|---|---|
org.bouncycastle.math.ec.ECPoint |
asEcPoint()
Returns this public key as an
ECPoint of Bouncy Castle, to facilitate cryptographic
operations. |
static SECP256K1.PublicKey |
create(java.math.BigInteger key) |
static SECP256K1.PublicKey |
create(Bytes encoded) |
static SECP256K1.PublicKey |
create(SECP256K1.PrivateKey privateKey) |
boolean |
equals(java.lang.Object other) |
java.lang.String |
getAlgorithm() |
byte[] |
getEncoded() |
Bytes |
getEncodedBytes() |
java.lang.String |
getFormat() |
int |
hashCode() |
static java.util.Optional<SECP256K1.PublicKey> |
recoverFromSignature(Bytes32 dataHash,
SECP256K1.Signature signature) |
java.lang.String |
toString() |
public static SECP256K1.PublicKey create(SECP256K1.PrivateKey privateKey)
public static SECP256K1.PublicKey create(java.math.BigInteger key)
public static SECP256K1.PublicKey create(Bytes encoded)
public static java.util.Optional<SECP256K1.PublicKey> recoverFromSignature(Bytes32 dataHash, SECP256K1.Signature signature)
public org.bouncycastle.math.ec.ECPoint asEcPoint()
ECPoint of Bouncy Castle, to facilitate cryptographic
operations.public boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic byte[] getEncoded()
getEncoded in interface java.security.Keypublic Bytes getEncodedBytes()
public java.lang.String getAlgorithm()
getAlgorithm in interface java.security.Keypublic java.lang.String getFormat()
getFormat in interface java.security.Keypublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object