Version History
v0.1.2 (Current)
Stable release of the LODE language and lodec compiler.
Changes since v0.1.0
- Improved error messages for schema validation
lodec diffcommand for comparing Vein binaries- Documentation portal with versioned docs
v0.1.0
Initial release of the LODE language and lodec compiler.
Features
- Schema definition format (
.lodefiles) - Vein binary encoding/decoding
- Four primitive types:
string,bool,string[],map<string,string> - Deterministic SHA-256 fingerprinting with canonicalization
- Verification (decode + fingerprint + compare)
lodecCLI withcompile,decode,fingerprint,verify,diffcommands- Forward compatibility (unknown fields skipped by decoder)
Schemas
model-layer-v1.lode— Model pool definitions for the StackNet registry
API
// Core functions
compile(source, schema): Uint8Array
decode(vein, schema): Record<string, any>
fingerprint(obj): string
verify(vein, hash, schema): boolean
loadLode(pathOrObj): LodeSchemaWire Format
- Magic bytes:
0x4C44(“LD”) - Header: 4 bytes (magic + version + count)
- Fields: id(1) + tag(1) + length(2) + data(N)
- Byte order: big-endian
Roadmap
v0.2.0 (Planned)
- Integer types (
int,uint,int64) - Float type (
float) - Raw bytes type (
bytes) - Schema import/reference mechanism
v0.3.0 (Planned)
- Streaming encoder for large payloads
- Nested schema support
- Schema-to-TypeScript code generation
Last updated on