| 程序包 | 说明 |
|---|---|
| com.arxanfintech.common.crypto.core |
| 限定符和类型 | 方法和说明 |
|---|---|
ECKey |
ECKey.compress()
已过时。
per-point compression property will be removed in Bouncy Castle
|
ECKey |
ECKey.decompress()
已过时。
per-point compression property will be removed in Bouncy Castle
|
static ECKey |
ECKey.fromNodeId(byte[] nodeId)
Recover the public key from an encoded node id.
|
static ECKey |
ECKey.fromPrivate(java.math.BigInteger privKey)
Creates an ECKey given the private key only.
|
static ECKey |
ECKey.fromPrivate(byte[] privKeyBytes)
Creates an ECKey given the private key only.
|
static ECKey |
ECKey.fromPrivateAndPrecalculatedPublic(java.math.BigInteger priv,
org.spongycastle.math.ec.ECPoint pub)
Creates an ECKey that simply trusts the caller to ensure that point is really
the result of multiplying the generator point by the private key.
|
static ECKey |
ECKey.fromPrivateAndPrecalculatedPublic(byte[] priv,
byte[] pub)
Creates an ECKey that simply trusts the caller to ensure that point is really
the result of multiplying the generator point by the private key.
|
static ECKey |
ECKey.fromPublicOnly(byte[] pub)
Creates an ECKey that cannot be used for signing, only verifying signatures,
from the given encoded point.
|
static ECKey |
ECKey.fromPublicOnly(org.spongycastle.math.ec.ECPoint pub)
Creates an ECKey that cannot be used for signing, only verifying signatures,
from the given point.
|
static ECKey |
ECKey.recoverFromSignature(int recId,
ECKey.ECDSASignature sig,
byte[] messageHash) |
static ECKey |
ECKey.signatureToKey(byte[] messageHash,
ECKey.ECDSASignature sig)
Compute the key that signed the given signature.
|
static ECKey |
ECKey.signatureToKey(byte[] messageHash,
java.lang.String signatureBase64)
Compute the key that signed the given signature.
|
Copyright © 2018. All Rights Reserved.