public static class ECKey.ECDSASignature extends Object
Modifier and Type | Field and Description |
---|---|
BigInteger |
r
The two components of the signature.
|
BigInteger |
s
The two components of the signature.
|
Constructor and Description |
---|
ECDSASignature(BigInteger r,
BigInteger s)
Constructs a signature with the given components.
|
Modifier and Type | Method and Description |
---|---|
static ECKey.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) |
int |
hashCode() |
ECKey.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 ECKey.ECDSASignature toCanonicalised()
public byte[] encodeToDER()
public static ECKey.ECDSASignature decodeFromDER(byte[] bytes)
protected ByteArrayOutputStream derByteStream() throws IOException
IOException
Copyright © 2014. All rights reserved.