crypto / org.apache.tuweni.crypto / SECP256K1 / Signature

Signature

class Signature (source)

A SECP256K1 digital signature.

Functions

bytes

open fun bytes(): Bytes

create

open static fun create(v: Byte, r: BigInteger, s: BigInteger): Signature

Create a signature from parameters.

equals

open fun equals(other: Any?): Boolean

fromBytes

open static fun fromBytes(bytes: Bytes): Signature

Create a signature from bytes.

hashCode

open fun hashCode(): Int

isCanonical

open fun isCanonical(): Boolean

Check if the signature is canonical. Every signature (r,s) has an equivalent signature (r, -s (mod N)) that is also valid for the same message. The canonical signature is considered the signature with the s-value less than or equal to half the curve order.

r

open fun r(): BigInteger

s

open fun s(): BigInteger

toString

open fun toString(): String

v

open fun v(): Byte