Skip to content

Releases

v0.5.0

Choose a tag to compare

@y1o1 y1o1 released this 17 Nov 11:29
4ee53e8

[0.5.0] - 2026-11-17

This release fixes three security advisories and binds an L2 wire proof to
the node it was made for. It has breaking changes: read Breaking changes
before upgrading.

Security

  • An L2 wire proof is accepted only by the node it was made for
    (GHSA-954g-5682-4235;
    affects 0.1.0 to 0.4.0). The signed
    view binds the audience, the registry ID of the receiving node, and a
    node's verifier refuses a proof for another before it resolves the signer
    or records the nonce. Upgrading needs every node and pipeline that talk
    to each other to move together: read Breaking changes.
  • schema/local reads a JSON Schema integer keyword as written, up to
    math.MaxInt

    (GHSA-mpg8-q8wr-vjxf;
    affects 0.1.0 to 0.4.0). An
    integer keyword (minLength, maxLength, minItems, maxItems,
    minProperties, maxProperties, minContains, maxContains) above
    math.MaxInt is read as math.MaxInt, and one whose number big.Rat
    cannot read is a LargeNumberError. Before, a value of 2^63 or more was
    compiled as another number.
  • An eddsa-rdfc-2022 credential's chain link is read as it is signed
    (GHSA-hgg6-cmxw-9f88;
    affects 0.2.0 to 0.4.0). An eddsa-rdfc-2022
    PipelinePassCredential must hold the members vc reads under their
    names and in their forms, and no others, and no two of its node objects
    may carry the same id. ValidateWireForm (and so
    Verify and VerifyChain), ValidateChainLinks, ValidateChainFrom and
    VerifySourceCommitment refuse one that does not; ValidateWireForm's
    documentation lists the form. eddsa-jcs-2022 credentials are not
    affected. Read Breaking changes.
  • Go 1.26.11: the module's toolchain and the verification module's
    are go1.26.11, and the network, pipeline and quickstart provision
    images build on golang:1.26.11-alpine, which carry the standard
    library's fix for GO-2026-6859 (net/http).

Added

  • Configuration: PROVIN_SCHEMA_REGEXP_MAX_GROUP_DEPTH, the bound on how
    deep a schema's regular expressions' groups nest (pattern, the names of
    patternProperties, a value checked as format "regex"): a decimal
    integer from 1 to 32, 8 when unset or empty. It is read once, as a program
    that imports schema or schema/local starts, directly or through another
    package of the module (pipeline/chained, pipeline/runtime,
    network/pkg/services/schemaregistry; cmd/network and cmd/pipeline),
    and a value it does not accept stops the program there with a panic naming
    the variable. Keep the default and change it only on an
    inquiry: the bound drives the worst-case time of compiling a schema and of
    validating a payload (schema/README.md), and processes with different
    settings can disagree on the same schema.
  • contentaddress.Hasher (NewHasher, Write, Address): the address of
    bytes written to it a part at a time, as Of makes it of bytes held at
    once, for bytes that arrive in parts without holding them all. The zero
    Hasher is ready to use. Address, Of and Parse do not change.
  • decisionrecord.WritePanic: what a call to a sink made here, or to a
    Filter, panics with when a write it waits for panics in a goroutine of
    its own: the value and the writer's stack, both in its text; Unwrap
    gives the value when it is an error.
  • decisionrecord: format v2 of records and summaries, beside format v1,
    which NewJSONLines and NewLog keep writing as 0.4.0 does: the same
    lines, byte for byte, and the same log entries.
    NewJSONLinesFormat and NewLogFormat take the version (FormatVersion,
    FormatV1, FormatV2). Format v2 adds the outcome Held (a check the
    deciding party enforces deferred the decision; it ranks above accepted and
    below unenforced and refused, and LevelRefusals writes it), a refused or
    unenforced record's RefusedAt (a Position: the hop its refusal is
    diagnosed at, with its Confidence, how far that hop is established), and
    a record's VerifiedHops (the hops whose signatures were verified). A
    format v1 sink refuses what format v1 cannot express with
    ErrNotInFormat, a constant of the new type decisionrecord.Error, and
    writes nothing of it. The README states when the version changes.
  • delegation.VerifyFor checks a delegation as authority for one identity:
    its credentialSubject.id is that identity's DID, byte for byte, and
    Verify accepts it. A delegation presented for another identity (another
    under the same Owner, or a Process under a delegated Pipeline) is
    delegation.ErrNotForIdentity, refused before anything is resolved (dplaax
    delegation.use.subject-bound). The sentinel is a constant of the new type
    delegation.Error, as did.Error and vc.Error are, so no importer can
    reassign it.
  • keybinding.StatusListContentHash computes a revocation list's content
    hash from its credential, as the dplaax rule
    keybinding.status-list.content-hash defines it and VerifyStatusList
    compares it. It checks the list's shape, not its signature: an equal hash
    says two lists have the same content, not that either is the issuer's.
  • vc: a signer-authenticity verdict that is not verified says why.
    SignerAuthenticityResult.Err is nil exactly when State is verified;
    otherwise errors.Is tells the cause: vc.ErrUnsigned,
    vc.ErrProofPolicy, vc.ErrCryptosuiteNotRegistered,
    vc.ErrIssuerNotFound or vc.ErrSignatureInvalid for a failed verdict,
    and the issuer verifier's or the lifecycle registry's own error for an
    indeterminate one. The field's documentation lists each condition and the
    order they are decided in: a failed verdict's Err matches exactly one of
    these sentinels, the one for the first condition met, and an indeterminate
    one's none of them. An error of a component the caller passes (an issuer
    verifier or VerifyChainSigners' IssuerKeys, a resolver, a signature
    verifier, a lifecycle registry) is
    wrapped as it is, so another sentinel of vc it wraps is found too; that
    is outside the promise. State and the other fields are unchanged, and so
    are Verify's and VerifyChain's verdicts.
  • vc: the chain-link checks tell their failures apart without reading
    text. ValidateChainLinks and ValidateChainFrom return an error that is
    vc.ErrChainLinkBroken for a broken link (a *ChainLinkError, which now
    matches it under errors.Is) and vc.ErrChainEmpty for an empty chain
    or a nil credential. VerifyChain's, ClassifyChain's and
    VerifyChainSigners' errors for an empty chain or a nil credential match
    vc.ErrChainEmpty too. The texts these calls gave before are kept;
    ClassifyChain's for a nil credential is new (see Fixed). A broken link is
    still a failed data-integrity verdict of VerifyChain, not an error.
  • vc: Verifier.VerifyChainSigners verifies a chain by its keys alone, for
    a consumer whose credentials' issuers are not Process DIDs under an
    Owner. It takes an IssuerKeys, the key half of IssuerVerifier (which
    now embeds it, with the same methods), and returns a ChainSignersResult:
    the links (as ValidateChainLinks checks them), the order of the proofs'
    created times (vc.ErrChainOrder, a *ChainOrderError whose Index is
    the later credential of the first pair out of order and whose
    FaultIndex is the credential the reported defect is in; its
    documentation gives the order a pair's defects are reported in) and each
    credential's signer
    verdict, its suite contract included, with State folding the three into
    one verdict (a check added later is folded into it). It establishes no
    Owner; its documentation lists what a caller still checks. VerifyChain is
    unchanged.
  • did/dplaax: ValidateRegistry checks a registry ID as Parse checks a
    DID's registry segment (the safe-segment rule and MaxRegistryLen); it is
    not a DNS-name check. (*DID).Pipeline returns a Process's Pipeline, and
    false for any other DID (dplaax did.dplaax.hierarchy); PipelineDID
    stays a truncation of the resource path.
  • did/dplaax: Error, the type of its sentinels, and ErrSyntax. Every
    refusal of Parse and ValidateRegistry is ErrSyntax under errors.Is
    (dplaax did.dplaax.syntax), its text unchanged, so a caller that wraps
    it with %w keeps it. The refusals of ValidateDID, RequireKnownPattern
    and RequireOwner are not ErrSyntax.
  • delegation: a sentinel for each kind of check Verify makes, constants
    of delegation.Error: ErrMalformed (dplaax delegation.shape),
    ErrOwnerBinding (delegation.binding), ErrProofPolicy
    (delegation.proof), ErrScoped (delegation.scope), and, for the
    issuer's key and signature, ErrIssuerNotFound, ErrSignatureInvalid and
    ErrSignatureUnestablished. Verify attaches exactly one of them to each
    refusal, and so does VerifyFor to each refusal other than
    ErrNotForIdentity; the texts are unchanged. The documentation lists the
    checks each covers. An empty issuer or subject id is ErrMalformed, and a
    present one that is not the DID the rule asks for is ErrOwnerBinding.
    ErrSignatureUnestablished is a resolution of the issuer that gave no
    definite answer, that returned neither a document nor an error, or that
    returned the document of another DID: the one a caller may retry.
    ErrIssuerNotFound is the resolver answering resolver.ErrNotFound, or a
    document with no key usable for assertion under the proof's
    verificationMethod. An error another package returned stays reachable, a
    resolver's and a signature verifier's as they return it; if such an error
    is a sentinel of delegation under errors.Is, that one is fo...
Read more

v0.4.0

Choose a tag to compare

@y1o1 y1o1 released this 09 Nov 12:59
a832c8e

[0.4.0] - 2026-11-09

This release fixes twelve security advisories and bounds what a node takes in
before it checks a signature. It has breaking changes: read Breaking
changes
before upgrading.

Security

  • eddsa-rdfc-2022 proofs cover every value of a document
    (GHSA-f2pv-v7jx-372m;
    affects 0.2.0 to 0.3.0).
    JSON-LD processing drops some values without an error, so a document could
    carry values its proof did not cover. canon/urdna2015 now counts a
    document's values in the document, in its expanded form and in the dataset,
    and refuses a document whose counts disagree. So that each value stays one
    value at every stage, the RDFC path also refuses forms JSON-LD drops or
    merges, among them blank node labels, @set and the framing keywords,
    @language outside a value object, a language tag outside ASCII, the RDF
    collection vocabulary written out, the same RDF term twice on one node's
    property, a node object that adds no statement, a value object or an empty
    object or array where JSON-LD keeps none, an array inside an array, a
    member named "" outside a context, and a context that sets @base or
    defines a map container. Where
    a program reads documents' own contexts (WithLocalContexts, under
    Breaking changes), more context forms are refused, aliases of @context
    and @json among them. canon/urdna2015's package doc lists what is
    refused, and by which stage. What is signed is the document's meaning:
    spellings JSON-LD gives one RDF term are signed as that term, and a
    property's values outside a list as a set. A document 0.3.0 accepted that
    meets these keeps its canonical bytes; one that writes a value twice is now
    refused, such as a self-issued credential whose issuer and subject, one id,
    both carry the same name.
    eddsa-jcs-2022 is not affected.

  • The cedar PDP backend authenticates the caller
    (GHSA-f7pq-gwf9-m29h;
    affects 0.1.0 to 0.3.0).
    0.3.0 gave the Cedar agent the raw bearer token as the principal, without
    verifying it. The node now verifies the bearer as a JWT (a signature by the
    configured key set or HS256 secret, exp and nbf with 30 s of leeway,
    iss, an aud containing the configured audience, a non-empty sub), in
    its one compact-JWS spelling, with its claims read under
    canon.StrictDecoder's rules, and gives the agent its sub. The
    configuration it needs is under Breaking changes.

  • A credential reaches only the parties its operator names
    (GHSA-7gqg-xf9h-699j;
    affects 0.1.0 to 0.3.0).
    The batch resolver presented the node's L1 bearer (vc-store-bearer) to
    every peer it fetched from, including endpoints others choose; it now
    presents it only to the origins of the configured destinations and of the
    new pipeline.credential-origins. provin bundle export showed --token
    to every endpoint the exported chain's issuers advertise; it now shows it
    only to --registry's origin and to the new --credential-origin origins.
    No call of the node, the pipeline or the CLI that carries a credential
    follows a redirect. What to configure is under Breaking changes.

  • A request that stops arriving no longer holds the node's HTTP server
    (GHSA-94vw-4854-vgp3;
    affects 0.1.0 to 0.3.0).
    Before any handler decides on a request, the server of both node binaries
    (internal/httpserve):

    • takes at most 64 KiB of headers (net/http's default is 1 MiB);
    • drops a request whose body delivers nothing for 30 seconds (or, chunked on
      HTTP/1, fewer than 16 KiB), or is not read to its end within 60 seconds of
      the request's start. RetainPayload, the one client-streaming RPC, lifts
      the 60-second bound once its caller has proven its DID in the first frame,
      and keeps the stall bound;
    • on HTTP/1, holds what net/http reads of a body itself, to discard what a
      handler leaves of it, to the same 30 seconds, and after a failed read
      reads the body no further and closes the connection after the answer;
    • applies the outer request-size bound to HTTP/2 streams on the cleartext
      (h2c) listener too;
    • returns the error of a failed read or close of a body within 512 bytes of
      UTF-8, wrapping the original (net/http quotes what it read in some).

    The bound is on progress, not rate: a body sent at a steady pace and a
    response streamed after the body are not cut. The deployment guide gives the
    limits.

  • A deeply nested document no longer crashes the process
    (GHSA-rrqg-h838-mfjv;
    affects 0.1.0 to 0.3.0).
    canon.StrictDecoder refuses a document nested deeper than 10,000 arrays
    and objects before walking it. Built with Go 1.26 or earlier, about a
    megabyte of [ overflowed the goroutine stack, a fatal error, before any
    signature was checked. encoding/json refuses the same depth, so no
    document that decoded is refused now. The refusal is a plain error naming
    the limit, not a *json.SyntaxError.

  • Checks made before a signature is checked take time linear in their
    input

    (GHSA-r57m-fpfp-vpr7;
    affects 0.1.0 to 0.3.0).

    • canon.AdmitSafeNumbers reads each number in time linear in its length,
      without math/big (a 9-byte literal such as 1e-999999 cost about
      10 ms). Every RFC 8259 number keeps its verdict, but for the range under
      Breaking changes; a json.Number that is not an RFC 8259 number, which
      only a caller building one can pass, is refused.
    • canon.StrictDecoder walks a document in time linear in its length (it
      copied a value's path for each of its siblings: 823 KB nested 8,704 deep
      took 8.5 s).
    • multibase.DecodeBase58Btc refuses a value of more than 8,192 characters
      after its prefix before decoding it (decoding costs the square of the
      length: 700 KB took 7.8 s). 8,192 characters hold every byte string of up
      to 5,998 bytes: every Ed25519, ECDSA and BLS key and signature, and
      ML-DSA's, but not SLH-DSA's.
    • canon/urdna2015 canonicalizes within a work bound in each stage:
      building the dataset, writing the canonical form, and labelling its blank
      nodes, as RDFC-1.0 §4.4.3 requires (json-gold's labelling had no bound: 7
      blank nodes no quad tells apart took 240 ms, each one more about 9 times
      as long). A document past a bound is refused with the new
      urdna2015.ErrTooComplex, which errors.Is finds through vc's create
      and verify functions. One property of one node holds at most about 1,460
      distinct values. Ordinary credentials use at most 2% of the dataset's
      bound, 3% of the canonical form's and less than half of the labelling's,
      and every dataset within them keeps its canonical bytes. The package doc
      states the bounds.
  • Schema admission and payload validation are bounded
    (GHSA-893p-p56r-f82x;
    affects 0.1.0 to 0.3.0).
    The JSON Schema library read every number as an exact rational (a megabyte
    of large exponents could cost minutes, and a number it could not read made
    validation panic or a schema bound disappear), compiled some shapes in time
    far above linear, and ran any regular expression Go compiles. Now:

    • a number longer than 256 bytes, or whose exponent part lies beyond ±400,
      is refused before the library reads it;
    • a schema is refused past bounds on its depth, its objects and its pointers
      and URLs, or when its check against its metaschema needs more than a work
      budget. It compiles in time about linear in its size; one of 1 MiB keeps
      at most about 170 MB once compiled;
    • a payload is validated within a work budget of 2^20 steps and 16 per byte
      of the payload, nested at most 512 deep;
    • a regular expression is accepted only in the forms ECMA-262 and Go's
      regexp read alike (Unicode classes by general category only, groups
      nested at most 32 deep), within 8,192 instructions, and a schema's
      regular expressions together within 2^14 plus one per 4 bytes of the
      schema; matching one is charged to the budget;
    • an error states its first failure, within 1 KiB.

    schema and schema/local do not bound a schema's or a payload's size:
    their callers do, as the network's schema registration does at 1 MiB.
    schema/README.md gives the bounds and what a schema and a validation cost
    at worst. What is newly refused is under Breaking changes.

  • A document no longer ends the program that canonicalizes it for
    eddsa-rdfc-2022

    (GHSA-5g26-3jj5-v85f;
    affects 0.2.0 to 0.3.0).
    json-gold, which canon/urdna2015 uses for JSON-LD expansion and the
    dataset, panics on some documents, before a proof's signature is checked.
    canon/urdna2015, and with it vc, return such a panic as an error, its
    text within 128 bytes; json-gold keeps no state between calls.
    eddsa-rdfc-2022 is also off until a program turns it on, and reads only
    the contexts vc embeds (Breaking changes).

  • RDFC's canonical N-Quads are one-to-one
    (GHSA-445x-fhpg-78wj;
    affects 0.2.0 to 0.3.0).
    canon/urdna2015 refuses a document whose dataset holds an IRI that is not
    valid UTF-8 or holds a character N-Quads' IRIREF excludes unescaped (a
    space, <, >, ", {, }, |, ^, ` or \); a literal that is
    not valid UTF-8 or holds a character RDFC-1.0 (Appendix A) writes escaped
    and URDNA2015 wri...

Read more

v0.2.0 — P0 public-release hardening; the first supported line

Choose a tag to compare

@y1o1 y1o1 released this 27 Jul 02:46

The P0 (public-release hardening) line, cut at the public/production cut as
this section always said it would be — no intermediate tag was minted between
0.1.0 and here, so everything below is one release.

This is the first supported line: SECURITY.md names 0.2.x as the supported
line and 0.1.x as an internal soak line, unsupported at the public cut, which
until this tag existed left the repository with no supported version at all.

v0 credential wire freeze declaration

As of this line the v0 credential Data Integrity wire — every byte that
participates in a credential signature — is frozen
. Concretely:

  • The credential @context set: https://www.w3.org/ns/credentials/v2
    (embedded verbatim, pinned to the W3C-published normative sha256
    59955ced6697d61e03f2b2556febe5308ab16842846f5b586d7f1f7adec92734),
    https://dplaax.dev/vc/v1, and https://provin.dev/vc/v1 (embedded,
    sha256-pinned), and the credential/subject wire members they define.
  • The Data Integrity proof algorithm:
    hashData = SHA-256(canon(proofConfig)) ‖ SHA-256(canon(document)), the
    W3C proof configuration — the six typed members plus the proof-local
    @context copied from the document when it has one (vc-di-eddsa §3.3.1
    step 2; amended within this same release line by the Fork W entry below,
    which post-dates and supersedes the original six-member wording) — and the
    base58btc (z multibase) proofValue encoding.
  • Both cryptosuites and their canonicalizations: eddsa-jcs-2022
    (actual RFC 8785 via the jcs-rfc8785 canonicalizer, Phase-1 MUST, issuance
    default, Multikey verification methods) and eddsa-rdfc-2022 (URDNA2015,
    Phase-2, opt-in), each anchored to the official W3C vc-di-eddsa test vectors
    with every intermediate pinned — for eddsa-jcs-2022, end to end: the
    official Example 39 proofValue verifies through the production classifier
    path. Artifacts signed under the historical int64-verbatim deviation verify
    only as the LEGACY_PROVIN_EDDSA_JCS_INT64@1 claim contract. The URDNA2015
    behavior is additionally pinned by a provin-shape KAT against json-gold
    v0.8.0.
  • The source-commitment form riding inside the signed credential: the RFC
    6962 Merkle tree hash over JCS-canonicalized source credentials (leaf
    prefix 0x00, interior 0x01, odd leaves promoted; empty set = hash of
    the empty string), the f1220 multihash source_root encoding, and the
    jcs-rfc8785 canonical identifier — a verifier recomputing the root must
    reproduce these bytes exactly.
  • The DID verification-method read contracts: OKP/Ed25519 JWK
    (JsonWebKey2020) and Multikey (publicKeyMultibase, multicodec
    0xed01), with method type and key encoding mutually exclusive.

Changing any of the above breaks proof compatibility with already-issued
credentials and is a next-MAJOR change. The freeze is enforced by tests
in this repository (W3C vectors, KATs, context digests), not by process.
Exported Go API and configuration keys remain 0.x-mutable; the wire freeze
is deliberately stricter than the API surface.

Out of scope of this declaration: the repository's OTHER signed views — the
tlog checkpoint SignedView, the chain-manager/payload-resolver wire-auth
views, and the DID-document JCS hash recorded into lifecycle logs — are
separate protocol contracts, each pinned by its own golden tests. Changes
there are compatibility-relevant and are called out in this changelog (see
the checkpoint entry under Changed below), but they are versioned by their
own contracts, not by this credential-wire declaration.

Fork W — full W3C eddsa-jcs-2022 conformance (BREAKING within this line)

Ratified architecture decision (debate P0-4 = Fork W, 2026-07-15): external
W3C-DI verifier interop is a product goal. eddsa-jcs-2022 now means what W3C
says it means. All changes below landed before any public tag, so they revise
the freeze declaration above — which ships for the first time in this same
release — rather than breaking a wire anyone had.

  • Canonicalization: new jcs-rfc8785 canonicalizer (byte-for-byte RFC 8785;
    unsafe integers round through binary64 like any strict-ES6 implementation).
    Every stored-address path — credential body hash / wire form, DID-document
    hash, source-root leaves, tlog checkpoint views, lifecycle-event maps,
    wire-auth views — now canonicalizes with it, making the long-advertised
    source_root_canonical: "jcs-rfc8785" name true. The historical
    int64-verbatim canonicalizer remains for legacy verification only and is
    unreachable from any issuance path.
  • Safe-number admission: canon.AdmitSafeNumbers rejects integer-valued
    JSON numbers outside ±(2^53−1) — in every spelling — before signing. A value
    above the range belongs in the string domain under a versioned schema.
  • Proof wire shape: proofs carry a proof-local @context copied from the
    document (present exactly when the document has one). Verification requires
    the wire member to equal the document's on canonical bytes — without that
    check it would be the one proof member a swap could not break.
  • Verification methods: issued DID documents (owner, pipeline, process) use
    Multikey and carry the frozen contexts
    ["https://www.w3.org/ns/did/v1", "https://w3id.org/security/multikey/v1"].
    Legacy JWK documents remain resolvable; proofs signed under them verify as
    the legacy contract.
  • Exact suite dispatch: one classifier resolves (suite id, proof shape, key
    encoding) to exactly one claim contract — W3C_EDDSA_JCS_2022_REC_20250515@1,
    W3C_EDDSA_RDFC_2022_REC_20250515@1, or LEGACY_PROVIN_EDDSA_JCS_INT64@1 —
    with no canonicalizer fallback. VerifyResult.SuiteContract reports which
    contract produced every verdict; a chain result carries the head
    credential's.

Migration notes (pre-release deployments only; there is no public tag):

  • Re-generate owner/pipeline/process DID documents (provin owner init against
    a fresh registry, or re-issue). A JWK-era owner document can still be READ,
    but a new binary signs W3C-shaped proofs, which no contract accepts over a
    JWK key — issuance from an old document fails closed until it is re-issued.
  • Before upgrading a deployment that has persisted stores, run
    go run ./internal/numberinventory/cmd/numberinventory <DataDir> and hold
    the upgrade if it reports BLOCK (an artifact carrying an unsafe integer
    would become unreadable at its stored address under the canonicalizer
    switch). Evidence record for this checkout:
    docs/evidence/forkw-1-number-inventory-2026-07-15.md (zero stored
    artifacts here; the tool exists for deployments that have them).
  • Old verifiers reject the new seven-member proofs as carrying an unknown
    member (fail-closed). Roll out readers before writers.
  • Legacy sunset schedule (confidence.legacy.sunset): the legacy
    int64-verbatim contract is Deprecated as of 2026-07-14; new legacy
    issuance stops 2026-10-01
    (Sunset); the issuer-side legacy path is
    removed 2027-04-01
    . Until Sunset, externally-signed legacy-shaped
    registrations are still admitted (the "read-only" contract governs what this
    repository issues, not yet what it admits); after it, admission requires the
    W3C shape.

P0-1A — immutable wire-variant set (BREAKING within this line)

Ratified architecture decision (debate P0-1 = B2.1, 2026-07-16), slice A of
three: identity. One body can hold several signed forms, because re-issuing a
proof leaves the body — and therefore every successor link — untouched. The VC
store kept one credential per body address and let a later write overwrite
it, so a valid proof could be evicted by a later invalid one, and an invalid
proof arriving first could keep the valid one out. Neither is possible now: the
variant set is write-once and append-only.

  • WireVariantID (wire:v1:jcs-rfc8785:sha256:<hex>) names one signed form:
    sha256("provin-wire-variant-v1\0" ‖ RFC8785(full wire document)). The prefix
    pins the id version, the canonicalization profile and the hash algorithm, so
    none is inferred and a future profile cannot reuse this id space. The digest
    covers the canonical PROJECTION, so two peers spelling one document
    differently admit it under one id and neither can mint a second identity for
    one signed form by re-serializing.
  • Storage is now a trusted façade over a dumb backend. vcresolver.Store
    and its keyed Put(hash, cred) are removed: a caller can no longer choose
    where its bytes land (both addresses are recomputed), so misfiling is not
    expressible, and the overwrite semantics are gone rather than deprecated.
    VariantStore enforces identity, canonical validation, write-once admission,
    winner resolution and defensive copying once, for every backend;
    VariantBackend (implemented by memstore.NewBackend / filestore.NewBackend)
    places named bytes and has no identity semantics at all. A Go interface is a
    method set, not a capability boundary — so the properties live above the seam,
    not in a suite the implementations promise to run.
  • ResolveVC changes behaviour: it now serves the deterministic winner over
    the held variant set (the lexicographically smallest variant id), where it
    previously served whatever was written last. The projection is provisional,
    not evidence
    : it is a function of the set held right now, so it can name a
    different variant once the set grows. It answers "some signed form of this
    body" — enough for a chain hole and for the content-hash check every verifier
    runs, and not enough to audit. ResolveVCResponse now says which variant it
    served, so a consumer can pin it.
  • ResolveVariant / ListVariants (additive RPCs) are the exact-fetch
    surface: byte-for-byte what was admitted, which is what evidence means.
    StoreVCResponse gained wire_variant_id; Service.StoreVC returns
    StoreVCResult{BodyAddress, WireVariantID} and client.StoreCredential...
Read more