Serializes an OCI image manifest deterministically: fixed key order,
annotations sorted by key, no whitespace, so the same input always gives
the same bytes and the same digest. config defaults to the OCI empty
descriptor, whose 2-byte blob {} must be in the repository before the
manifest is pushed (OciClient.pushEmptyConfig). The image spec requires
artifactType whenever the config is the empty descriptor.
Serializes an OCI image manifest deterministically: fixed key order, annotations sorted by key, no whitespace, so the same input always gives the same bytes and the same digest.
configdefaults to the OCI empty descriptor, whose 2-byte blob{}must be in the repository before the manifest is pushed (OciClient.pushEmptyConfig). The image spec requiresartifactTypewhenever the config is the empty descriptor.