Signature

@JsonDeserialize(using = scala.Predef.classOf[com.casper.sdk.json.deserialize.SignatureDeserializer]) class Signature(bytes: Array[Byte], keyAlgo: KeyAlgorithm) extends CLPublicKey

Signature Type

trait Tag
class Object
trait Matchable
class Any

Value members

Constructors

def this(signature: String)

Constructor from a hex String

Constructor from a hex String

Inherited methods

override def equals(obj: Any): Boolean

equals

equals

Returns

Boolean

Definition Classes
Inherited from
CLPublicKey
def formatAsByteAccount: Array[Byte]

format to Byte array with algorithm

format to Byte array with algorithm

Inherited from
CLPublicKey
def formatAsHexAccount: Option[String]

format to Hex account , ie : 0106cA7c39cD272DbF21a86EeB3B36B7c26E2e9b94af64292419f7862936bcA2cA, 01 being tag bytes

format to Hex account , ie : 0106cA7c39cD272DbF21a86EeB3B36B7c26E2e9b94af64292419f7862936bcA2cA, 01 being tag bytes

Inherited from
CLPublicKey
override def hashCode(): Int

hashCode

hashCode

Returns

Int

Definition Classes
Inherited from
CLPublicKey
def tag: Int

tag =1

tag =1

Inherited from
CLPublicKey
def toPemString(): String

Write public key to pem file

Write public key to pem file

Inherited from
CLPublicKey
override def toString: String

toString

toString

Returns

String

Definition Classes
Inherited from
CLPublicKey
def verifySignature(msg: Array[Byte], signature: Array[Byte]): Boolean

Verifies a signed message

Verifies a signed message

Value Params
msg

the message to sign

signature

signature of the signed message

Returns

true if the signature is valid and false if not

Inherited from
CLPublicKey

Inherited fields