public class PublicKey extends java.lang.Object implements Key
PrivateKey| 构造器和说明 |
|---|
PublicKey(byte[] pub,
Cryptography crypto)
Create from uncompressed binary representation
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
equals(java.lang.Object obj) |
static PublicKey |
fromCompressed(byte[] pub,
Cryptography crypto) |
int |
hashCode() |
PublicKey |
offsetKey(java.math.BigInteger offset)
Return a key computable for this key with an offset.
|
byte[] |
toByteArray()
Safe access to the key's internal representation
|
java.lang.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 在接口中 Keypublic boolean verify(byte[] hash,
byte[] signature)
hash - arbitrary datasignature - signaturepublic PublicKey offsetKey(java.math.BigInteger offset)
Keypublic int hashCode()
hashCode 在类中 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals 在类中 java.lang.Objectpublic java.lang.String toString()
toString 在类中 java.lang.ObjectCopyright © 2018. All Rights Reserved.