public class Signature
extends java.lang.Object
Constructor and Description |
---|
Signature(java.math.BigInteger r,
java.math.BigInteger s)
Creates a new signature.
|
Signature(byte[] bytes)
Creates a new signature.
|
Signature(byte[] r,
byte[] s)
Creates a new signature.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
byte[] |
getBinaryR()
Gets the r-part of the signature.
|
byte[] |
getBinaryS()
Gets the s-part of the signature.
|
byte[] |
getBytes()
Gets a little-endian 64-byte representation of the signature.
|
java.math.BigInteger |
getR()
Gets the r-part of the signature.
|
java.math.BigInteger |
getS()
Gets the s-part of the signature.
|
int |
hashCode() |
java.lang.String |
toString() |
public Signature(java.math.BigInteger r, java.math.BigInteger s)
r
- The r-part of the signature.s
- The s-part of the signature.public Signature(byte[] bytes)
bytes
- The binary representation of the signature.public Signature(byte[] r, byte[] s)
r
- The binary representation of r.s
- The binary representation of s.public java.math.BigInteger getR()
public byte[] getBinaryR()
public java.math.BigInteger getS()
public byte[] getBinaryS()
public byte[] getBytes()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object