| 限定符和类型 | 字段和说明 |
|---|---|
static net.i2p.crypto.eddsa.spec.EdDSANamedCurveSpec |
ed25519 |
net.i2p.crypto.eddsa.spec.EdDSAPrivateKeySpec |
keySpec |
| 构造器和说明 |
|---|
EDKeyPair(net.i2p.crypto.eddsa.spec.EdDSAPrivateKeySpec keySpec) |
| 限定符和类型 | 方法和说明 |
|---|---|
byte[] |
canonicalPubBytes() |
String |
canonicalPubHex() |
static EDKeyPair |
from128Seed(byte[] seedBytes) |
static EDKeyPair |
from256Seed(byte[] seedBytes) |
BigInteger |
priv() |
String |
privHex() |
BigInteger |
pub() |
byte[] |
pub160Hash() |
byte[] |
signMessage(byte[] message) |
String |
type() |
boolean |
verifySignature(byte[] message,
byte[] sigBytes) |
public final net.i2p.crypto.eddsa.spec.EdDSAPrivateKeySpec keySpec
public static final net.i2p.crypto.eddsa.spec.EdDSANamedCurveSpec ed25519
public EDKeyPair(net.i2p.crypto.eddsa.spec.EdDSAPrivateKeySpec keySpec)
keySpec - keySpecpublic static EDKeyPair from256Seed(byte[] seedBytes)
seedBytes - seed bytes.public static EDKeyPair from128Seed(byte[] seedBytes)
seedBytes - SeedBytes.public String canonicalPubHex()
canonicalPubHex 在接口中 IKeyPairpublic BigInteger pub()
public BigInteger priv()
public boolean verifySignature(byte[] message,
byte[] sigBytes)
verifySignature 在接口中 IKeyPairpublic byte[] signMessage(byte[] message)
signMessage 在接口中 IKeyPairpublic byte[] canonicalPubBytes()
canonicalPubBytes 在接口中 IKeyPairpublic byte[] pub160Hash()
pub160Hash 在接口中 IKeyPairCopyright © 2021. All rights reserved.