Instance Property
dataRepresentation
The serialized public key bytes as Data, in the key’s format.
- iOS 13.0+
- macCatalyst 13.0+
- macOS 10.15+
- tvOS 13.0+
- visionOS 1.0+
- watchOS 6.0+
var dataRepresentation: Data { get }
Discussion
Suitable for comparison with a known-authentic public key via constant-time equality (see safeCompare) to authenticate the recovery result. The format (P256K.Format.compressed or P256K.Format.uncompressed) is inherited from the format: argument passed to the recovery initializer.