Signable

public protocol Signable

Protocol to allow types to be cryptographically signed and verified. Requires serialization to be deterministic.

  • Provides a reproducible string representation of the data to sign and verify. Requires the serialization to be deterministic – i.e. types such as Dictionary and Set must be serialized in a reproducible order.

    Declaration

    Swift

    func serialized() -> String

    Return Value

    Reproducible string representation of the type