Add Content Addressing page under CEK Machine
Some checks failed
Build and Deploy / build-and-deploy (push) Has been cancelled
Some checks failed
Build and Deploy / build-and-deploy (push) Has been cancelled
Dedicated page documenting and demonstrating content-addressed computation. How it works, why it matters, the path to IPFS. Live demo: counter + name widget with CID generation, history, and restore-from-CID input. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
// =========================================================================
|
||||
|
||||
var NIL = Object.freeze({ _nil: true, toString: function() { return "nil"; } });
|
||||
var SX_VERSION = "2026-03-15T00:16:30Z";
|
||||
var SX_VERSION = "2026-03-15T00:22:59Z";
|
||||
|
||||
function isNil(x) { return x === NIL || x === null || x === undefined; }
|
||||
function isSxTruthy(x) { return x !== false && !isNil(x); }
|
||||
@@ -5797,7 +5797,9 @@ PRIMITIVES["resource"] = resource;
|
||||
|
||||
// String/number utilities for content addressing
|
||||
PRIMITIVES["char-code-at"] = function(s, i) { return s.charCodeAt(i); };
|
||||
var charCodeAt = PRIMITIVES["char-code-at"];
|
||||
PRIMITIVES["to-hex"] = function(n) { return (n >>> 0).toString(16); };
|
||||
var toHex = PRIMITIVES["to-hex"];
|
||||
|
||||
// localStorage — defined here (before boot) so islands can use at hydration
|
||||
PRIMITIVES["local-storage-get"] = function(key) {
|
||||
|
||||
Reference in New Issue
Block a user