Instance Method
signature(for:context:)
iOS 26.0+
macOS 26.0+
tvOS 26.0+
watchOS 26.0+
Signs the given data within the given context.
func signature<D, C>(for data: D, context: C) throws -> Data where D : DataProtocol, C : DataProtocol
Parameters
dataThe data to sign.
contextThe context to produce the signature in. Signatures don’t verify across differing contexts.
Return Value
The signature.
Discussion
Throws
If the signature couldn’t be produced.