SealLink Specification
SealLink Protocol Specification
Version: 1.0.0-draft.5
Status: draft (wire format not yet frozen; open items tracked in OPEN-QUESTIONS.md)
Evidence / Maturity: vectors (Draft 2020-12 schemas published live at https://seallink.org/releases/v1.0.0-draft.5/schemas/, pure-Python BIP-340 / Ed25519 / low-S P-256 reference primitives, 4 end-to-end RFC 8448-style byte traces, schema-validated 84/84 refusal matrix, 369 live verifier checks, multi-operator mutation audit via tools/mutation_audit.py achieving 215/215 (100.0%) refusal-return, 215/215 (100.0%, 0 exceptions) wrong-code, and 66/69 (95.7%, 0 exceptions) exact numeric boundary kill rates, cold-observer Namecoin Core RPC adapter tools/nc_rpc_adapter.py, two-node nc28.0 P2A regtest proof in conformance/p2a-regtest/, and live two-node nc28.0 five-trace cold-observer regtest proof in conformance/traces-regtest/; dual-impl Rust + Go follows next)
Authors: Ivan Oparin, Alexey Grigorev
License: Prose under CC BY 4.0; registries, schemas, vectors, and tooling under MIT (LICENSE.md).
Web Edition & Release Bundles: Browse the rendered HTML / Print-to-PDF edition and live
$idJSON Schemas at seallink.org, or download the compiled single-file Markdown specification and SHA-256 checksum from GitHub Releases.
Overview
SealLink is an open protocol enabling intelligent actors — people, organizations, and autonomous software agents — to register sovereign identities, relationships, contracts, obligations, verifiable credentials, and revocable powers of attorney (grants) so that any verifier can check them independently on its own ledger node without trusting the issuer’s server, a central registry, or the message transport.
- Sovereign Identity: A name on a public UTXO-and-name ledger (Namecoin Binding Profile v1) binds an actor to its role keys/on-chain role-policy pins,
ScriptPolicy(P2WPKHor nativeP2WSHm-of-nmultisig), uniform privacy-preservingorigincommitment, and oneseallink-manifest/1head with pinnedNamePinproviders. - Unified Authorization: A unilateral, canonically encoded
seallink-grant/1expresses fine-grained capabilities via a decidable 7-predicate Constraint Algebra (eq,in,not_in,prefix,suffix,range,hash_eq) and separate additivequotas, with optional bilateral contract binding (seallink-contract/1) and bounded depth-2 re-delegation (enforcing whole-parent budget sums and disjoint coin ranges). - Issuer-Independent Revocation: Every revocable authority is tied to an unspent transaction output (a seal). Spending the seal closes the authority across observing verifiers at mempool speed with durable local closure — even when the issuer’s infrastructure is offline.
- Origin and Multi-Guardian Quorums: Eternal
seallink-origin/1certificates (person,agent,organization) with salted privacy commitments, explicitdisposer_pk/arbiter_pk/challenger_pk, authenticatedstatus_seal/roster_seal/recovery_sealcontinuation spines, single-use name bindings, direct initial (0x12) and acyclic two-stage (0x0d/0x0e) guardianship, roster transitions (0x0f), independent per-slotguardian_approvals[], and 4-class linear verifier-derived quorums enforce protocol-level non-autonomy for wards while supporting clean emancipation and dual-mode name recovery.
Specification Suite
| Document | Scope | Status | Maturity |
|---|---|---|---|
| SPEC-00-architecture.md | Positioning, 8 Core Principles, Actor Ontology, Role Glossary, Governance, Threat Model, References | draft |
prose |
| SPEC-01-wire-and-crypto.md | Restricted RFC 8785 JCS, Dual Integers, BIP-340 Tagged Hashes, SignatureSet & guardian_approvals[] Policy Binding, Salted Disclosure, 7-Predicate Constraint Algebra, Wire Pipeline |
draft |
vectors |
| SPEC-02-ledger-and-names.md | Abstract ChainView, Namecoin Binding v1 (NAME_NEW / NAME_FIRSTUPDATE / NAME_UPDATE, CSV/SegWit), ScriptPolicy, SIGHASH_ALL Writer Check, Freshness, Witness W, SLNK OP_RETURN, Merkle Batch 0x02, UTXO Seals & TRUC/P2A CPFP |
draft |
vectors |
| SPEC-03-identity-and-custody.md | 520B Name Value (Multi-Role Keys & On-Chain Policy Pins, Uniform origin Pin), Key Taxonomy & Cold Reserve, manifest/1 & Pinned providers[], Entity Card, 4-Channel Cascade, Provisional Onboarding & Name Auth, Owner Control |
draft |
vectors |
| SPEC-04-origin-and-guardianship.md | Origin Certificates (Salted Commitments, status_seal, roster_seal, disposer_pk/arbiter_pk/challenger_pk), Single-Use Name Binding, $N$-Slot Guardianship & 4-Class Quorums, Ward Non-Autonomy, Initial (0x12) & Two-Stage (0x0d/0x0e) Activation, Roster Transitions (0x0f), Consistency Invariants (SL-ORIG-016), Emancipation, end/1, Dual-Mode name_recovery (0x10) |
draft |
vectors |
| SPEC-05-contracts-and-credentials.md | N-Party Salted Contracts (ward_origin_id, machine_clause_indices), Framework Nesting, Confirmed Seal Termination, Symmetric assent/1 (with guardian_approvals[]), Config Hash, Verifiable Credentials (eternal/revocable, h_c), General Notary Acts, Violation Verdicts |
draft |
vectors |
| SPEC-06-grants-and-delegation.md | Universal grant/1 (executor vs Stateless executor_ref, Seal vs Root window_only, Acyclic single_use 0x11, Ward guardian_approvals[]), invocation/1 & receipt/1, Depth-2 Re-Delegation (R8.5/R8.6), Early-Auth Admission Pipeline, Crash-in-Effect-Window uncertain Recovery, Bearer Sessions, Anti-Rollback Fenced Journals |
draft |
vectors |
| SPEC-07-services-and-portability.md | Sovereign Provider Authority & Pinned TLS Mutual Auth, Replaceable Services & Exclusive Cut-Over (migration/1), Federated Screening & Progressive PII Disclosure (Contour A), SLIP Extension Checklists |
draft |
vectors |
Standard Profiles, Governance, SSOT, Vectors, Conformance Evidence, and Guides
- Standard Profiles (
profiles/):- PROFILE-mail-v1.md — Sovereign email hosting and delegated mailbox access (
mail/list,mail/read,mail/send). - PROFILE-agent-v1.md — Bounded autonomous agent briefs (
agent/brief), tool calls (agent/tool), contract-bound isolated sessions (agent/session), andstrict_dropguardian message verification (agent/guardian-message).
- PROFILE-mail-v1.md — Sovereign email hosting and delegated mailbox access (
- Governance & Conformance:
- CONFORMANCE.md — Conformance roles, mandatory behavioral invariants, and maturity progression criteria.
- OPEN-QUESTIONS.md — Authoritative registry of all
openrules, provisional numeric constants, and unprofiled service types. - SLIP-TEMPLATE.md — SealLink Improvement Proposal template and lifecycle process.
- CHANGELOG.md — Release history.
conformance/p2a-regtest/— Reproducible two-node Namecoin Corenc28.0P2A1p1c TRUC v3 package-relay positive control and SHA-256 checksums.conformance/traces-regtest/— Reproducible two-node Namecoin Corenc28.0(-txindex=1 -namehistory=1 -acceptnonstdtxn=0) live cold-observer regtest execution of all 5 SealLink traces viatools/nc_rpc_adapter.py(PROFILE-mail-v1mail/read+executor_ref+ named recipient + mempool revoke,P2WSH2-of-3namepsbt+guardian_slot_pendingCSV +0x10cancel, depth-2 siblingrow_ordinal+ crash/restart recovery +single_use_1_of_2+ TRUC v3P2ACPFP,agent/guardian-message, and historical eternal diploma across live 30-block expiry & lawful re-registration) with raw transaction hexes, txids, and liveTier1Verifierverdicts.
- Machine-Readable Registries (
registry/):object-types.json— 30 canonicalseallink-*/1types, byte limits, signing roles, and schema links.refusal-codes.json— 84 deterministic refusal codes with closure and retryability flags.opreturn-actions.json—SLNK(534c4e4b)OP_RETURNaction bytes (0x01–0x12,0x06reserved) and locator types (0x00,0x01,0x02,0x05).key-roles.json— 22 key roles, curves, custody tiers, and signing domain constraints.service-types.json— Standard service types + reverse-domain extension grammar.constraints.json— 7 conservative Constraint Algebra predicates and quota windows.
- Formal JSON Schemas (
schemas/): 12 Draft 2020-12 schemas (common,name-value,manifest,card,origin,guardian,contract,credential,grant,invocation,profile-mail,profile-agent). - Executable Conformance Vectors (
vectors/):wire-jcs-and-hashes.json— Restricted JCS positive/negative, 3 hashes,clause_hash, BIP-340SignatureSet, plus RFC 8032 Ed25519 and strict low-S NIST P-256 device-key signature vectors (positive, high-S negative, wrong-type negative).ledger-scripts-and-opreturn.json— All 3 Namecoin prefix scripts, allScriptPolicycompilations,P2ACPFP (240-sat dust floor, mandatory TRUC v3 for zero-fee),SLNKOP_RETURNhex frames (0x01–0x12), and 5-leaf Merkle batch0x02inclusion proofs.constraints-and-schemas.json— All 7 Constraint Algebra predicates (match + narrowing + conservative rejections) and negative schema/semantic fixtures (includingSL-ORIG-016guardianship consistency anddisposer_pkrotationretain_activerefusal cases).trace-01-mail-offline-revoke.json— Executable end-to-end mail trace (offline issuer,recipient.mode = "name", 69B MIMEmail/readreceipt, constraint refusal, mempool seal spend ->GRANT_CLOSED).trace-02-guardian-succession-assent.json— Executable end-to-end guardianship trace (initial activation0x12+ guardian assent, halt, acyclic Stage 10x0d-> Stage 20x0e, roster0x0f, ward contractward_origin_id+party_id+guardian_approvals[], co-tenant same-roleparty_idcontract assent, and both positivename_recoverycontinuation branches: timely0x10restoration ofB_1and post-delay promotion toB_3).trace-03-delegation-pool-single-use.json— Executable end-to-end delegation & single-use trace (2 groups sharing 1 pool under R8.5/R8.6, atomic dual-accountown+rowmulti-quota reservation/settlement & partial-failure rollback, acyclic0x11single-use execution, crash-in-effect-windowuncertainrecovery, post-settlement replay idempotency, new-nonceINVOKE_REPLAY, issuer revocation ->GRANT_CLOSED).trace-04-agent-guardian-intake.json— Executable end-to-endPROFILE-agent-v1agent/guardian-messagetrace (strict_drop, inactive guardianGUARDIAN_INACTIVE, downgradedroutine_read->GUARDIAN_QUORUM_UNMET, valideffect_grant+guardian_approvals[]->ADMIT+ Authority FrameAgentGuardianMessageResult).refusal-coverage-matrix.json— Executable conformance matrix driving all84/84registered refusal codes with Draft 2020-12 schema-validated semantic fixtures throughtools/seallink_verifier.pyandtools/seallink_ref.py.security-conformance.json— Executable adversarial, false-admit, acceptance, restart-recovery, historical re-registration, exact numeric boundary, and multi-operator mutation regression suite covering stranger-signed envelopes, emptytrusted_origin_issuers, closed-schema validation, policy-scoped0x0bcompromise reconstruction, multi-registration historical credential lookups after expiry & re-registration, full executor restart recovery (quota_watermarks+ content-addressedreceipt_store), per-row_ordinalsibling quota isolation, 64-entryReceipt.settlements, exact</<=/>/>=boundary pinning, and every refusal branch intools/seallink_verifier.py(215/215=100.0%refusal-return,215/215=100.0%wrong-code,66/69=95.7%exactboundarykill rate).
- Informative Guides & Traceability:
- GUIDE-01-custody-and-signers.md — Hardware/cold custody, Namecoin
namepsbt, Tier 1-txindex=1 -namehistory=1RPC observation (tools/nc_rpc_adapter.py), crash-safe delegation & restart recovery, Agent Isolation Runtime integration, and TLS SPKI pinning / managed CDN guidance. - archive/rule-inventory.md — Complete per-rule conformance index covering all 113 declared
SL-*rules plus migration traceability from the historical draft corpus.
- GUIDE-01-custody-and-signers.md — Hardware/cold custody, Namecoin
Automated Verification and Release Bundles
Run the specification linter (validating registries, cross-registry signer coherence, rule uniqueness, Draft 2020-12 metaschemas, schema validity of all semantic refusal inputs, tools/nc_rpc_adapter.py offline self-test, cryptographic verification, live execution of every trace, all 84/84 refusal codes, historical re-registration, restart recovery, and exact-boundary regressions through the Reference Verifier Core (tools/seallink_verifier.py), plus verifier-check mutation self-tests), multi-operator mutation audits, and the single-file bundle check locally:
python3 tools/speclint.py --require-jsonschema
python3 tools/mutation_audit.py --mode refusal-return --min-kill-pct 100
python3 tools/mutation_audit.py --mode wrong-code --min-kill-pct 100
python3 tools/mutation_audit.py --mode boundary --min-kill-pct 95
python3 tools/build_bundle.py --version v1.0.0-draft.5 --check
Pushing a signed release tag (v*) triggers .github/workflows/release.yml, which runs the full lint and executable verifier suite, compiles the entire specification into one deterministic Markdown file (seallink-spec-<tag>.md + .sha256), and publishes a GitHub Release automatically.
# License
The SealLink Protocol Specification prose (`spec/`, `profiles/`, `guides/`, `archive/`, `README.md`) is licensed under the **Creative Commons Attribution 4.0 International License (CC BY 4.0)**.
All machine-readable registries, schemas, test vectors, and specification tooling (`registry/`, `schemas/`, `vectors/`, `tools/`) are licensed under the **MIT License**.
---
## MIT License
Copyright (c) 2026 Ivan Oparin, Alexey Grigorev
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.