| 程序包 | 说明 |
|---|---|
| org.tron.tronj.crypto |
| 限定符和类型 | 方法和说明 |
|---|---|
static SECP256K1.Signature |
SECP256K1.Signature.create(BigInteger r,
BigInteger s,
byte recId)
Creates a new signature object given its parameters.
|
static SECP256K1.Signature |
SECP256K1.Signature.decode(Bytes bytes) |
static SECP256K1.Signature |
SECP256K1.normaliseSignature(BigInteger nativeR,
BigInteger nativeS,
SECP256K1.PublicKey publicKey,
Bytes32 dataHash) |
static SECP256K1.Signature |
SECP256K1.sign(Bytes32 dataHash,
SECP256K1.KeyPair keyPair) |
| 限定符和类型 | 方法和说明 |
|---|---|
static Optional<SECP256K1.PublicKey> |
SECP256K1.PublicKey.recoverFromSignature(Bytes32 dataHash,
SECP256K1.Signature signature) |
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.
|
Copyright © 2021. All rights reserved.