nx_emitted_substrate_test.nx
buildroot/runtime/nx_emitted_substrate_test.nx
about
nx_emitted_substrate_test.nx -- smoke for Phase 5 substrate
emission.
Exercises:
1. Allocation + canary + initial state
2. Add 3 expected hashes
3. Duplicate add rejected
4. Sign + verify roundtrip
5. Frozen-after-sign: add_expected refused after signing
6. Tamper detection: mutate target_tier / n_expected / a
stored hash field -> verify returns BAD_SIG
7. Wrong pub key -> BAD_SIG
8. populate downstream manifest from emitted record
9. Bad-input gates + canary tamper
dependencies 4 imports · 0 importers
imports: nx_syscalls.nxnx_blob_store.nxnx_substrate_manifest.nxnx_emitted_substrate.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| none |
functions
| 22 | func _rfc_priv(buf: *u8) -> i64 called by 1: main |
| 42 | func _rfc_pub(buf: *u8) -> i64 called by 1: main |
| 64 | func _make_emitter_hash(buf: *u8) -> i64 called by 1: main |
| 73 | func _fill(buf: *u8, len: i64, seed: i64) -> i64 called by 1: main |
| 82 | func _hash_of(bytes: *u8, len: i64) -> *NxBlobHash |
| 89 | func main() -> i64 |