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 transmission and persistence. Most Bitcoin/Taproot workflows consume the x-only form instead — use xonly in that case.