code wiki / (root) / nx_drm_audit.nx

nx_drm_audit.nx

buildroot/runtime/nx_drm_audit.nx

4706 B80 linesdepth 0pulls 0 transitivereach 1 importersview sourcekind library
docsdependenciesstructsconstsfunctions

about

nx_drm_audit.nx -- cartridge/printer DRM auditor: classify the DRM mechanism(s) in play and pair each with the HONEST bypass, NEVER-BRICK by construction (#26). Grounded in the sovereign researcher's cited cases: - "fake empty" (vendor disables a cartridge while consumable remains) -- HP $5M settlement. - firmware that blocks 3rd-party consumables -- HP ($1.5M), Epson (2019 class action), Canon, Brother (HOP planned-obsolescence suit). [Brother/HP/Canon/Epson all named.] - smart chips enforcing genuine/region/expiry -- chip-resetters exist; Brother chipped since 2017. THE NEVER-BRICK PROPERTY (#26, brand-critical, proven MECHANICALLY here, not asserted as a promise): EVERY bypass this auditor recommends is read-only / reversible / externally-guided and writes NO printer firmware/ NVRAM. A hypothetical firmware-write action is included so the gate can PROVE the recommender never emits it. PURE arithmetic classifier, no syscalls -> safe by construction. license_tier: ORIGINAL genealogy_id: project-printer-management-ipp-sclass-2026-06-20

dependencies 0 imports · 1 importers

nx_drm_audit.nx nx_drm_audit_test.nx

imports: none

imported by: nx_drm_audit_test.nx

structs

none

consts

16const NX_DRMV_UNKNOWN: i64 = 0
17const NX_DRMV_HP: i64 = 1
18const NX_DRMV_EPSON: i64 = 2
19const NX_DRMV_CANON: i64 = 3
20const NX_DRMV_BROTHER: i64 = 4
23const NX_DRM_NONE: i64 = 0
24const NX_DRM_FAKE_EMPTY: i64 = 1 // reports empty while consumable remains (HP $5M class)
25const NX_DRM_FIRMWARE_BLOCK: i64 = 2 // firmware disables 3rd-party consumables (HP/Epson/Canon/Brother)
26const NX_DRM_CHIP: i64 = 4 // smart chip enforces genuine/region/expiry
29const NX_BYP_NONE: i64 = 0
30const NX_BYP_CONTINUE_MODE: i64 = 1 // the printer's OWN reversible Continue setting + trust our real coverage
31const NX_BYP_REFUSE_FIRMWARE: i64 = 2 // do NOT apply the vendor firmware update; our IPP path ignores driver-DRM
32const NX_BYP_CHIP_RESET: i64 = 3 // external chip-reset tool on the CARTRIDGE's chip (guided, physical)
33const NX_BYP_FIRMWARE_DOWNGRADE: i64 = 9 // DANGEROUS: writes printer firmware -- we NEVER recommend this (#26)

functions

37func nx_drm_vendor_blocks(vendor: i64) -> i64
called by 1: nx_drm_classify
48func nx_drm_classify(vendor: i64, cartridge_chipped: i64, reported_empty: i64, real_remaining_bp: i64) -> i64
called by 1: main calls 1: nx_drm_vendor_blocks
58func nx_drm_flag_count(flags: i64) -> i64
called by 1: main
67func nx_drm_bypass_for(flag: i64) -> i64
called by 1: main
77func nx_drm_bypass_writes_firmware(action: i64) -> i64
called by 1: main