<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "P256K",
  "identifier" : "/documentation/P256K/P256K/MuSig/PublicKey/dataRepresentation",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "P256K"
    ],
    "preciseIdentifier" : "s:5P256KAAO5MuSigO9PublicKeyV18dataRepresentation10Foundation4DataVvp"
  },
  "title" : "dataRepresentation"
}
-->

# dataRepresentation

The serialized public key bytes as `Data`, in the key’s [`format`](/documentation/P256K/P256K/MuSig/PublicKey/format).

```
var dataRepresentation: Data { get }
```

## Discussion

Suitable for transmission and storage. **Note**: for full reconstruction
on the receiving side, you must also transmit the [`cache`](/documentation/P256K/P256K/MuSig/XonlyKey/cache) from
[`xonly`](/documentation/P256K/P256K/MuSig/PublicKey/xonly) — the raw bytes alone do not carry the MuSig key-aggregation
coefficients required for the partial-signing phase.