public class PublicKey extends Object implements Key
PrivateKey| Constructor and Description |
|---|
PublicKey(byte[] pub,
Cryptography crypto)
Create from uncompressed binary representation
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static PublicKey |
fromCompressed(byte[] pub,
Cryptography crypto) |
int |
hashCode() |
PublicKey |
offsetKey(BigInteger offset)
Return a key computable for this key with an offset.
|
byte[] |
toByteArray()
Safe access to the key's internal representation
|
String |
toString() |
boolean |
verify(byte[] hash,
byte[] signature)
verify a signature created with the private counterpart of this key
|
public PublicKey(byte[] pub,
Cryptography crypto)
pub - pubcrypto - cryptopublic static PublicKey fromCompressed(byte[] pub, Cryptography crypto)
public byte[] toByteArray()
KeytoByteArray in interface Keypublic boolean verify(byte[] hash,
byte[] signature)
hash - arbitrary datasignature - signaturepublic PublicKey offsetKey(BigInteger offset)
KeyCopyright © 2018. All rights reserved.