Signature

abstract class Signature

An abstract representation of a crypto signature, associated to a specific signature scheme e.g. Ed25519 or Secp256k1

This is the product of signing a message directly from a PrivateKey and can be verified against a CryptoPublicKey.

Inheritors

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
abstract fun toBcs(): ByteArray
Link copied to clipboard
abstract fun toByteArray(): ByteArray

Get the raw signature bytes

Link copied to clipboard
open override fun toString(): String

Get the signature as a hex string with a 0x prefix e.g. 0x123456...