SignedDocument
A wrapper object around a given data type and its cryptographic signature. Note that document remains unchanged
-
A data type that conforms to the
Signableprotocol (i.e. it is deterministically serializable)Declaration
Swift
public let document: T -
The cryptographic signature over the serialized document
Declaration
Swift
public let signature: String -
Initializer to manually create
SignedDocumenttypes.Declaration
Swift
public init(document: T, signature: String)Parameters
documentA data type that conforms to the
SignableprotocolsignatureThe cryptographic signature over the serialized document
-
Declaration
Swift
public func serialized() -> String
View on GitHub
SignedDocument Structure Reference