Skip to content

Singular 0.3.0 — the naming validators, run on a devnet

Choose a tag to compare

@lambdasistemi-ci lambdasistemi-ci released this 11 Sep 11:18
· 2426 commits to main since this release
3e1cf14

The first release with on-chain code. singular-onchain-0.3.0.tar.gz holds two sets of compiled Aiken validators with their pinned script hashes. The first is the imported Merkle Patricia Forestry Service (MPFS) validators, which hold the registry trie. The second is Singular's own naming validators: the application validator and the representative-NFT policy. The archive also has a Haskell codec for the naming datum and runners that start registries, maintain names and cancel claims on a local devnet. Recovery and retirement are not part of this release; they arrive in 0.4.0.

What changed

Validators and their identity

  • Singular's naming validators, written in Aiken: the application validator (spend and mint) and the representative policy. Their hashes are pinned in naming-onchain/script-identity.json and checked in CI. Writing the tests exposed a defect: a claim that had already been folded could still be cancelled. Fold now consumes the withdrawal approval. (#55)
  • The hashes a transaction carries are applied hashes, computed from the pinned unapplied hashes and the instance's parameters. The journey runner derives them and checks them against what the chain ran, on every run. (#44)

The naming datum

  • A Haskell codec for the four-field naming datum: control address, optional payment destination, next-control commitment and retirement quorum. It is checked byte for byte against the four wire vectors published in 0.2.0, including the vectors that must be refused. (#48)
  • A drift check reports when the vendored copy of those vectors and the live corpus in the repository diverge. It does not adopt the change by itself. (#60)

Executed on a devnet

  • Canonical registry initialization: it consumes the seed and mints no representative, and the datum is decoded from what the chain holds. (#53)

  • Seven wrong initializations. Validators refuse five of them, and the ledger refuses a replayed seed. A rival registry booted from a different seed is accepted, but it carries a different registry token name, so it cannot pass for the canonical one. (#59)

  • Name maintenance and claim cancellation. Changing the payment destination needs the controller's signature, and the change is refused if a preserved field is altered. Cancellation refunds only to the stored address. It is refused for a redirected refund, with only the Insert approval, after a fold, and on replay. (#58)

  • Release machinery: a version tag now also builds the on-chain archive with Nix, with an internal checksum manifest and verify-identities.sh. The naming codec moved inside the off-chain flake so that every runner builds in CI. (#54, #61)

Use it

  1. Download singular-onchain-0.3.0.tar.gz and SHA256SUMS, run sha256sum --check SHA256SUMS, and extract the archive.
  2. Run bash verify-identities.sh to check the compiled blueprints against the pinned hashes. It needs only bash and jq.
  3. With Nix, README.md in the archive runs the datum codec suite and the devnet runners: nix run .#journey, .#li01 (initialization), .#li-refusals (the seven wrong initializations) and .#naming-rows (maintenance and cancellation), from offchain/. Each runner exits non-zero on any mismatch.

singular-docs-0.3.0.tar.gz is byte-identical to the 0.2.0 documentation archive (same SHA-256), because the documentation did not change.

Limits

  • Recovery and retirement are not covered.
  • Each row is a fixed fixture executed once on a devnet. That is evidence about those fixtures, not about arbitrary transactions, and not a general proof that the validators are correct.
  • Local devnet only.

Full list of changes: v0.2.0...v0.3.0