Skip to content

You're viewing documentation for a pre-release version. View the latest stable version

Instance Method

signature(for:)

iOS 26.0+ macOS 26.0+ tvOS 26.0+ watchOS 26.0+
Signs the given data.
func signature<D>(for data: D) throws -> Data where D : DataProtocol

Parameters

data

The data to sign.

Return Value

The signature.

Discussion

Throws

If the signature couldn’t be produced.