open class SignedData<T : Any>
A serialized piece of data and its signature. Enforces signature validity in order to deserialize the data contained within.
raw
- the raw serialized data.
sig
- the (unverified) signature for the data.
<init> |
A serialized piece of data and its signature. Enforces signature validity in order to deserialize the data contained within. SignedData(raw: SerializedBytes<T>, sig: WithKey) |
raw |
the raw serialized data. val raw: SerializedBytes<T> |
sig |
the (unverified) signature for the data. val sig: WithKey |
verified |
Return the deserialized data if the signature can be verified. fun verified(): T |
verifyData |
Verify the wrapped data after the signature has been verified and the data deserialised. Provided as an extension point for subclasses. open fun verifyData(data: T): Unit |