public static class SECP256K1.Signature
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
BYTES_REQUIRED |
| Modifier and Type | Method and Description |
|---|---|
static SECP256K1.Signature |
create(java.math.BigInteger r,
java.math.BigInteger s,
byte recId)
Creates a new signature object given its parameters.
|
static SECP256K1.Signature |
decode(Bytes bytes) |
Bytes |
encodedBytes() |
boolean |
equals(java.lang.Object other) |
java.math.BigInteger |
getR() |
byte |
getRecId() |
java.math.BigInteger |
getS() |
int |
hashCode() |
java.lang.String |
toString() |
public static final int BYTES_REQUIRED
public static SECP256K1.Signature create(java.math.BigInteger r, java.math.BigInteger s, byte recId)
r - the 'r' part of the signature.s - the 's' part of the signature.recId - the recovery id part of the signature.SECP256K1.Signature object.java.lang.NullPointerException - if r or s are null.java.lang.IllegalArgumentException - if any argument is invalid (for instance, v is
neither 27 or 28).public static SECP256K1.Signature decode(Bytes bytes)
public Bytes encodedBytes()
public boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic byte getRecId()
public java.math.BigInteger getR()
public java.math.BigInteger getS()
public java.lang.String toString()
toString in class java.lang.Object