soft3/schema.md

schema

canonical wire format definitions for the soft3 stack. all language SDKs generate types from here.

scope

message format status
signal (binary) fixed-width records defined — see cybergraph/specs/graph
query request TBD pending
query response + proof TBD pending — blocked on lens serde
checkpoint TBD pending
cyberlink (7-tuple) fixed-width defined — see cybergraph/specs/cyberlink

signal binary format

from cybergraph/specs/graph:

signal header (44 bytes):
  [0..32]   ν   neuron (hemera hash, 32 B)
  [32..40]  t   unix timestamp, seconds (u64 little-endian)
  [40..44]  n   link count (u32 little-endian, n ≥ 1)

link record (105 bytes), repeated n times:
  [0..32]    p   from (hemera hash, 32 B)
  [32..64]   q   to (hemera hash, 32 B)
  [64..96]   τ   token (hemera hash, 32 B)
  [96..104]  a   stake amount (u64 LE)
  [104..105] v   valence (i8: -1, 0, +1)

total: 44 + 105·n bytes

query wire format

not yet defined. will cover:

  • request: (dimension, key, bbg_root) → 65 bytes fixed
  • response: (value_bytes, commitment, opening, point) → variable

blocked on lens Commitment/Opening serde stabilisation.

checkpoint format

checkpoint (232 bytes):
  [0..32]    bbg_root       (32 B)
  [32..224]  folding_acc    (192 B — zheng accumulator, TBD exact size)
  [224..232] height         (u64 LE)

accumulator size depends on zheng proof system stabilisation.

Homonyms

cyberindex/database/schema
schema
cw-cyber/contracts/cw-cyber-passport/schema
schema
cw-cyber/contracts/litium-refer/schema
schema
cw-cyber/contracts/litium-stake/schema
schema
cw-cyber/contracts/litium-wrap/schema
schema
cw-cyber/contracts/hub-skills/schema
schema
cw-cyber/contracts/hub-channels/schema
schema
cw-cyber/contracts/cw-cyber-subgraph/schema
schema
cw-cyber/contracts/cw-cyber-gift/schema
schema
cw-cyber/contracts/hub-protocols/schema
schema
cw-cyber/contracts/hub-networks/schema
schema
cybertensor/cybertensor/contract/schema
schema
cw-cyber/contracts/litium-mine/schema
schema
cw-cyber/contracts/hub-libs/schema
schema
cw-cyber/contracts/hub-tokens/schema
schema
cw-cyber/contracts/cybernet/schema
schema
cw-cyber/contracts/litium-core/schema
schema
cw-cyber/contracts/hub-protocols/src/schema
schema
go-cyber/networks/local/cyberindex/schema
schema

Graph