Instance Property
dataRepresentation
The raw 32-byte secret key as Data. Keep this value confidential; disclosure allows anyone to sign on your behalf.
- iOS 13.0+
- macCatalyst 13.0+
- macOS 10.15+
- tvOS 13.0+
- visionOS 1.0+
- watchOS 6.0+
var dataRepresentation: Data { get }
Discussion
The bytes are zeroed when the backing PrivateKeyImplementation is deallocated, but copies made through this accessor are not: any Data produced here escapes the zeroization scope and must be handled by the caller.