| 程序包 | 说明 |
|---|---|
| org.tron.tronj.crypto |
| 限定符和类型 | 方法和说明 |
|---|---|
static SECP256K1.PublicKey |
SECP256K1.PublicKey.create(BigInteger key) |
static SECP256K1.PublicKey |
SECP256K1.PublicKey.create(Bytes encoded) |
static SECP256K1.PublicKey |
SECP256K1.PublicKey.create(SECP256K1.PrivateKey privateKey) |
SECP256K1.PublicKey |
SECP256K1.KeyPair.getPublicKey() |
| 限定符和类型 | 方法和说明 |
|---|---|
static Optional<SECP256K1.PublicKey> |
SECP256K1.PublicKey.recoverFromSignature(Bytes32 dataHash,
SECP256K1.Signature signature) |
| 限定符和类型 | 方法和说明 |
|---|---|
static Bytes32 |
SECP256K1.calculateECDHKeyAgreement(SECP256K1.PrivateKey privKey,
SECP256K1.PublicKey theirPubKey)
Calculates an ECDH key agreement between the private and the public key.
|
static SECP256K1.Signature |
SECP256K1.normaliseSignature(BigInteger nativeR,
BigInteger nativeS,
SECP256K1.PublicKey publicKey,
Bytes32 dataHash) |
static boolean |
SECP256K1.verify(Bytes data,
SECP256K1.Signature signature,
SECP256K1.PublicKey pub)
Verifies the given ECDSA signature against the message bytes using the public key
bytes.
|
static boolean |
SECP256K1.verify(Bytes data,
SECP256K1.Signature signature,
SECP256K1.PublicKey pub,
UnaryOperator<Bytes> preprocessor)
Verifies the given ECDSA signature using the public key bytes against the message
bytes, previously passed through a preprocessor function, which is normally a
hashing function.
|
| 构造器和说明 |
|---|
KeyPair(SECP256K1.PrivateKey privateKey,
SECP256K1.PublicKey publicKey) |
Copyright © 2021. All rights reserved.