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