SignedData

open class SignedData<T : Any>(val raw: SerializedBytes<T>, val sig: DigitalSignature.WithKey)

A serialized piece of data and its signature. Enforces signature validity in order to deserialize the data contained within.

Parameters

raw

the raw serialized data.

sig

the (unverified) signature for the data.

Constructors

Link copied to clipboard
constructor(raw: SerializedBytes<T>, sig: DigitalSignature.WithKey)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun verified(): T

Return the deserialized data if the signature can be verified.