public class ECDSASignature extends Object implements ISignature
| 限定符和类型 | 字段和说明 |
|---|---|
BigInteger |
r |
BigInteger |
s |
| 构造器和说明 |
|---|
ECDSASignature(BigInteger r,
BigInteger s) |
| 限定符和类型 | 方法和说明 |
|---|---|
static ECDSASignature |
decodeFromDER(byte[] bytes) |
protected ByteArrayOutputStream |
derByteStream() |
byte[] |
encodeToDER()
DER is an international standard for serializing data structures which is widely used in cryptography.
|
boolean |
equals(Object o) |
boolean |
isCanonical() |
ECDSASignature |
toCanonicalised()
Will automatically adjust the S component to be less than or equal to half the curve
order, if necessary.
|
public final BigInteger r
public final BigInteger s
public ECDSASignature(BigInteger r, BigInteger s)
public boolean isCanonical()
ECSignUtils.HALF_CURVE_ORDER. See
BIP62.public ECDSASignature toCanonicalised()
public byte[] encodeToDER()
public static ECDSASignature decodeFromDER(byte[] bytes) throws IllegalArgumentException
protected ByteArrayOutputStream derByteStream() throws IOException
IOExceptionCopyright © 2022. All rights reserved.