| 程序包 | 说明 |
|---|---|
| com.alipay.mychain.zoro.crypto.ecdsa |
| 限定符和类型 | 方法和说明 |
|---|---|
static ECDSASignature |
ECDSASignature.decodeFromDER(byte[] bytes) |
ECDSASignature |
ECKeyPair.sign(byte[] transactionHash)
ECSignUtils a hash with the private key of this key pair.
|
ECDSASignature |
ECDSASignature.toCanonicalised()
Will automatically adjust the S component to be less than or equal to half the curve
order, if necessary.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static BigInteger |
ECSignUtils.recoverFromSignature(int recId,
ECDSASignature sig,
byte[] message)
Given the components of a signature and a selector value, recover and return the public
key that generated the signature according to the algorithm in SEC1v2 section 4.1.6.
|
Copyright © 2022. All rights reserved.