feat: add service, escrow, and L402 credential schemas#3
Open
hexdaemon wants to merge 1 commit intoarchetech:mainfrom
Open
feat: add service, escrow, and L402 credential schemas#3hexdaemon wants to merge 1 commit intoarchetech:mainfrom
hexdaemon wants to merge 1 commit intoarchetech:mainfrom
Conversation
Three new credential schema sets for the Archon ecosystem: Service (credentials/service/v1/): - DIDServiceCredential: Scoped delegation with permissions, constraints, tiers, and compensation terms. General-purpose service authorization. - DIDServiceProfile: Service advertising credential for marketplace discovery. Capabilities, pricing, availability, reputation references. Escrow (credentials/escrow/v1/): - DIDTaskEscrowReceipt: Signed proof-of-completion for conditional Cashu ecash escrow. Binds task execution to payment release. L402 (credentials/l402/v1/): - L402AccessCredential: DID-bound L402 access with payment proof and macaroon caveats. Addresses archetech/archon#75. All schemas follow the conventions established by credentials/reputation/v1: JSON Schema draft-07, W3C VC 2.0 compliant, archetech.com context URLs. Design documents: github.com/lightning-goats/cl-hive/tree/main/docs/planning
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Three new credential schema sets extending the Archon identity ecosystem with service delegation, task escrow, and L402 payment access.
New Schemas
credentials/service/v1/DIDServiceCredential— Scoped delegation with permissions, constraints, tiers, and compensation terms. General-purpose: any DID can delegate specific capabilities to another DID with enforced boundaries.DIDServiceProfile— Service advertising credential for marketplace discovery. Capabilities, pricing models, availability, specialization, and reputation references.credentials/escrow/v1/DIDTaskEscrowReceipt— Signed proof-of-completion for conditional Cashu ecash escrow (NUT-10/11/14). Binds task execution to payment release. The verifier (oracle) signs the receipt when work is verified, enabling the executor to redeem their escrowed payment.credentials/l402/v1/L402AccessCredential— DID-bound L402 access combining identity + payment proof + access scope via macaroon caveats. Addresses Feature Request: L402 (Lightning 402) Support with DID-bound Macaroons archon#75.Design Documents
These schemas are extracted from a comprehensive protocol suite for trustless agent service markets:
credentials/reputation/v1)Conventions
All schemas follow the patterns established by
credentials/reputation/v1:validFrom/validUntil, v2 context)schemas.archetech.com/credentials/<type>/v1context URLsRelationship to archetech/archon#75
The
L402AccessCredentialdirectly addresses the L402 feature request. It defines the credential structure for DID-bound macaroons backed by Lightning invoices and/or Cashu tokens.