One command for the whole life of a package
Developers rarely call the components directly. Kamotsu runs them in order and prints one line per step, naming the component that acted and never claiming more than happened.
- kamotsu new <name>
- Scaffold a binary package.
- kamotsu check
- Parse, type-, ownership- and effect-check, and lower to Core. No proofs.
- kamotsu test --native
- Run tests and spec examples in the interpreter with contracts checked, then compiled, and compare.
- kamotsu prove
- Produce evidence for every obligation, check it with Saniwa, update the lock and report what is open.
- kamotsu build
- A checked build: runtime checks keep every fault site. Not a release.
- kamotsu build --release
- Prove, replay, build, and write the Ofuda and evidence. Fails unless every obligation is proved and the policy passes.
- kamotsu verify
- Re-verify someone else's release from its sources, Ofuda and artifact.
- kamotsu explain <id>
- One obligation in source terms and in the logic, with its status and provenance.
- kamotsu audit
- Komainu's report on capability use and the assumption ledger.
- kamotsu fmt, lint, run
- Misogi formatting, Harae lints, and the reference interpreter.
- kamotsu add, publish, doc
- Registry dependencies and Fumi documentation.
- kamotsu repair
- Omoikane and Naobi proof and repair providers.
$ kamotsu verify target/release/transfer.ofuda \ target/release/transfer Ofuda decoded transfer.ofuda strictly Kamotsu inventoried 5 sources by the verifier's own rules Makotoc regenerated Core sha256:127b9e2f… from the sources; Ukehi regenerated 28 goals Kamotsu every regenerated source, goal and toolchain field equals the certificate's (none missing, none extra) Saniwa replayed 28 selected evidence objects with no cache and no search: 28 accepted Kotowari bootstrap floor, package policy and verifier policy pass Makotoc the rebuild reproduced the recorded and the presented artifact byte for byte Kotowari accepted: artifact sha256:96066f97… (stage S0; see the Ofuda for the trusted base and assumptions)
The steps kamotsu verify reports when it accepts the transfer release, abridged: lines wrapped, digests shortened.
The manifest says what must be proved
The guarantees a release must carry are written down next to the package name, where reviewers and auditors can read them. These are the two files of the transfer acceptance package.
[verification]Names the required guarantees. A release that asks for more than stage S0 can give, such as verified code generation, is refused rather than quietly downgraded.Kotowari.tomlAdds the publisher's policy. It composes with the manifest and can only add requirements: here, two positive and two negative examples for each public function.[capabilities]Grants effects such asio. The Ofuda records which capabilities were granted, reachable and used.Kamotsu.lockRecords proof build state. A--lockedrelease never rewrites it and fails if it is out of date.
Twenty-nine libraries, compared against Rust
Each library lives in its own Apache-2.0 repository maintained by Soramitsu. The checkout manifest pins every one by commit and SHA-256 source digest, and comparison tests measure their functional agreement with the corresponding Rust code.
- adler2Checksums
Whole-slice and incremental Adler-32 with initial or resumed checksum state.
- base64Encoding and bytes
Standard padded and URL-safe unpadded Base64, canonical decoding and caller-provided buffers.
- blake2Hashing and MACs
Unkeyed sequential BLAKE2b with caller-selected digest widths from 1 to 64 bytes and incremental BLAKE2b-256.
- byteorderEncoding and bytes
Little- and big-endian signed and unsigned integers, widths one through eight bytes.
- bytesEncoding and bytes
Bounded read and write cursors, split spans, integer fields and compaction over caller storage.
- crc32fastChecksums
Portable CRC-32/ISO-HDLC with seed, updates, reset, length tracking and checksum combination.
- curve25519_dalekSignatures
Public Edwards25519 arithmetic, prime-order key admission and strict verification equations compared with Rust Dalek.
- ed25519Signatures
Binary signature representation, component conversion and exact-length parsing.
- ed25519_dalekSignatures
Strict Ed25519 and prime-order verification of public messages compared with Rust Dalek.
- hexEncoding and bytes
Lowercase and uppercase hexadecimal encoding, mixed-case decoding and invalid-digit positions.
- hkdfHashing and MACs
HKDF-SHA-256 extraction and expansion through 8,160 bytes.
- hmacHashing and MACs
HMAC-SHA-256 generation and full-tag comparison.
- iroha_coreIroha
Read Kura publication markers and resident indexes, check journal entries and pinned header ancestry.
- iroha_cryptoIroha
Marked BLAKE2b-256 and incremental V1 typed Merkle roots.
- iroha_data_modelIroha
Deployment identity, envelope payload comparison, single Ed25519 transaction signatures against a pinned deployment, compact signed block streaming, entrypoint roots and header hash reconstruction.
- iroha_model_baseIroha
Compact ChainId and Ed25519 PeerId encoding and decoding against Rust fixtures.
- iroha_p2pIroha
Offline receive-credit offer framing and geometry checks.
- iroha_primitivesIroha
Bounded ASCII chain label validation compared with Rust.
- iroha_sumeragiIroha
Committee shape, exact quorum, signer bitmaps and certificate structure.
- itoaEncoding and bytes
Decimal ASCII formatting for signed and unsigned integers through 128 bits.
- keccakHashing and MACs
Keccak-f[1600] and Keccak-p[1600] with zero to 24 rounds.
- memchrText
Forward and reverse byte searches and linear substring search with caller-provided scratch.
- noritoIroha
Uncompressed framing, incremental CRC64-XZ, header inspection, typed payload primitives, collection traversal, reusable validated UTF-8 values, schema identity and checksummed text literals.
- percent_encodingEncoding and bytes
Custom ASCII escape sets, percent encoding and byte decoding.
- sha1Hashing and MACs
One-shot and incremental SHA-1 for existing protocol fields.
- sha2Hashing and MACs
SHA-224, SHA-256 and all four SHA-512 family variants, including SHA-384.
- sha3Hashing and MACs
SHA3-224/256/384/512, Keccak-256 and streaming SHAKE128/256.
- simdutf8Text
UTF-8 validity on a bounded byte span, with scalar execution and native back-end specialisation.
- unicode_identText
Unicode 18 XID_Start and XID_Continue over the full scalar range.
No library matches. Try a shorter word, or clear the filter.
Fetch them
From a Makoto checkout, populate every library at its pinned commit and check the source digests.
python3 libraries/checkout.py python3 libraries/checkout.py --check
Depend on one
Declare it by path in Kamotsu.toml. Kamotsu resolves transitive local packages.
[dependencies]
norito = { path = "../../libraries/norito" }
A registry where the proof travels with the package
Publishing source and certifying a release are separate steps today. The registry planned for kamotsu.io joins them: the certificate becomes part of what you download.
- 0.1
Local paths, pinned by digest
Dependencies are local source paths, each library pinned by commit and SHA-256. A library release certifies the complete linked Core program.
Here now - 0.2
Content-locked packages
Library packages with a digest-bound ABI and an external-caller model, content-locked identities and verification across the whole dependency closure.
- kamotsu.io
The registry
Ofudas as first-class metadata and policy-aware resolution, with
kamotsu addandkamotsu publish.
Built for Makoto
Makoto is a proof-first systems programming language. A release exists only when an independent kernel has accepted every obligation of the program, and every release carries the certificate to prove it.