Skip to content

Make VerificationMethod.init public - #60

Merged
germ-mark merged 2 commits into
mainfrom
mark/ger-2268-resolver-authority-carry-signing_key-into-verificationmethod
Aug 19, 2026
Merged

Make VerificationMethod.init public#60
germ-mark merged 2 commits into
mainfrom
mark/ger-2268-resolver-authority-carry-signing_key-into-verificationmethod

Conversation

@germ-mark

Copy link
Copy Markdown
Contributor

Only code inside this package could construct a VerificationMethod, so a
resolver adapter in another package that is handed a signing key directly
rather than a full DID document — Slingshot's resolveMiniDoc, which returns
signing_key on the wire — had no way to publish it and shipped
verificationMethod: []. AtprotoTypesVerify's RepoSigningKey then refuses
every document that resolver produces, and since germ-atproto-resolver's
optimizedResolve races Slingshot against a plc.directory query, whether a
repo proof verifies depends nondeterministically on which resolver wins.

Matches Service's initializer, already public. No behavior change, no new
tests — an access-level widening has no behavior to pin, and
RepoProofVerifierTests already covers accept/refuse for every method shape.

Unblocks a Microcosm PR that populates the field from the signing key it
already decodes.

Part of GER-2268.

🤖 Generated with Claude Code

Only code inside this package could construct a VerificationMethod, so a
resolver adapter in another package that is handed a signing key
directly rather than a full DID document — Slingshot's resolveMiniDoc —
had no way to publish it and shipped verificationMethod: []. Matches
Service's initializer, already public.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@changeset-bot

changeset-bot Bot commented Aug 19, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: c33db52

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@germ-network/atprototypes Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Slingshot's adapter no longer ships an empty verificationMethod, so
"today's ... builds a document with verificationMethod: []" was about to
go wrong the moment this repo's own change reached Microcosm.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@germ-mark
germ-mark merged commit 3cada03 into main Aug 19, 2026
6 checks passed
@germ-mark
germ-mark deleted the mark/ger-2268-resolver-authority-carry-signing_key-into-verificationmethod branch August 19, 2026 16:45
@github-actions github-actions Bot mentioned this pull request Aug 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant