Table of Contents

Class TufCanonicalJson

Namespace
Sigstore.Tuf
Assembly
Sigstore.dll

Produces a deterministic UTF-8 encoding of TUF signed metadata objects suitable for signature verification. This follows the same structural rules as the secure-systems-lab reference (go-securesystemslib canonical JSON): objects have lexicographically sorted keys, no insignificant whitespace, and stable array ordering.

public static class TufCanonicalJson
Inheritance
TufCanonicalJson
Inherited Members

Methods

EncodeSigned(JsonElement)

Canonicalizes the signed element of a TUF metadata document to UTF-8 bytes.

public static byte[] EncodeSigned(JsonElement signed)

Parameters

signed JsonElement

The signed JSON object.

Returns

byte[]

Canonical UTF-8 payload hashed by TUF signatures.