|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.bitcoin.core.ECKey.ECDSASignature
public static class ECKey.ECDSASignature
Groups the two components that make up a signature, and provides a way to encode to DER form, which is how ECDSA signatures are represented when embedded in other data structures in the Bitcoin protocol. The raw components can be useful for doing further EC maths on them.
| Field Summary | |
|---|---|
BigInteger |
r
The two components of the signature. |
BigInteger |
s
The two components of the signature. |
| Constructor Summary | |
|---|---|
ECKey.ECDSASignature(BigInteger r,
BigInteger s)
Constructs a signature with the given components. |
|
| Method Summary | |
|---|---|
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. |
void |
ensureCanonical()
Will automatically adjust the S component to be less than or equal to half the curve order, if necessary. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public BigInteger r
public BigInteger s
| Constructor Detail |
|---|
public ECKey.ECDSASignature(BigInteger r,
BigInteger s)
| Method Detail |
|---|
public void ensureCanonical()
public byte[] encodeToDER()
public static ECKey.ECDSASignature decodeFromDER(byte[] bytes)
protected ByteArrayOutputStream derByteStream()
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||