01Overview
ENGRAM stores short encrypted memories on Robinhood Chain (chain id 4663): notes, rules for your AI agent, trade theses. There is no contract and no server. Each memory is a 0 ETH transaction from your wallet to your own address, and the encrypted memory is its calldata.
Encryption and decryption happen in your browser with WebCrypto. The key comes from a signature only your wallet can make, so only your wallet can read the memories, on any device.
| Item | Value |
|---|---|
| Chain | Robinhood Chain, id 4663 (0x1237), gas in ETH |
| RPC | https://rpc.mainnet.chain.robinhood.com |
| Explorer | robinhoodchain.blockscout.com |
| Cipher | AES-256-GCM, 12-byte random IV, 16-byte tag, header as AAD |
| KDF | HKDF-SHA256, salt ENGRAM/v1 |
| Max note | 2,000 characters |
02The key
Your wallet signs this exact message with personal_sign. It sends no transaction and costs nothing.
ENGRAM memory key v1 Sign to unlock your encrypted memories on Robinhood Chain. This signature is your key. It sends no transaction and costs no gas.
The 65-byte signature is the HKDF input. Two values come out of it:
info = "engram/v1/aes-256-gcm": the AES key, created non-extractable, held only in the page.info = "engram/v1/key-id": 4 bytes written in every memory, so recall can tell "wrong key" apart from "broken data".
Phantom, MetaMask and Rabby sign deterministically (RFC 6979), so the same wallet gives the same key every time. Treat the signature like a password: a site that gets you to sign this exact message could read your memories. ENGRAM only asks for it on its own page.
03Calldata format
| Bytes | Field | Value |
|---|---|---|
| 0-5 | magic | 454e4752414d ("ENGRAM") |
| 6 | version | 01 |
| 7-10 | key id | 4 bytes from HKDF |
| 11-42 | prev | tx hash of your previous memory, 32 zero bytes for the first one |
| 43-54 | iv | 12 random bytes |
| 55-end | ciphertext | AES-256-GCM output + 16-byte tag. Bytes 0-42 are the additional data. |
The plaintext is JSON:
{"v":1,"k":"rule","t":"agent only trades HOOD pairs. size 0.5% max","ts":1764072000}
k is note, rule or thesis. ts is Unix seconds. A real 155-byte memory, made with the code on this site:
0x454e4752414d01 9bee5c2e 0000000000000000000000000000000000000000000000000000000000000000 2d2d3454bf38f6cfa08b9b73 14f54b32e85fd84c2ef65e42f315e5411eeb15b4cec903b88e7f6d112b26338980e3096ac0b1459a5e 4777106defa21d96d593651cd52ba22796960f78a306681a5bc30472c426f58da200fb40f81e73e8bf 3e9456aedf5c049561ac6482cc93f9ac49ca
04Writing
The terminal estimates the cost, then asks your wallet to send:
ethereum.request({ method: "eth_sendTransaction", params: [{
from: "0xYOU", to: "0xYOU", value: "0x0", data: "0x454e4752414d01…" }] })
It polls eth_getTransactionReceipt every 1.5 s, for up to 90 s, then adds the hash and block to the local index.
05Recall
POST https://rpc.mainnet.chain.robinhood.com
{"jsonrpc":"2.0","id":2,"method":"eth_getTransactionByHash","params":["0xMEMORY_TX"]}
The terminal checks that from is your wallet, parses input, checks the key id and decrypts. It also follows prev from the newest memory, so memories written on another device show up as soon as the index knows one later hash.
06The index
Your memory hashes are kept in this browser's localStorage under engram:v1:idx:<address>. Nothing about them is secret: the same list is public on chain. On a new device, F4 REBUILD INDEX:
- asks Blockscout for your transactions (
/api/v2/addresses/<you>/transactions?filter=from, then the v1txlistAPI) and keeps the ones sent to yourself that start with the ENGRAM magic; - if the explorer is down or rate-limits, takes your latest memory hash (it is at the top of every memory.md) and walks back through the
prevlinks over the public RPC.
07Feed your agent
F3 EXPORT memory.md decrypts everything and downloads one Markdown file, grouped into Agent rules, Trade theses and Notes, with the tx hash under each line. Put it in a Claude project, a custom GPT, or your own agent's system prompt.
# memory.md Exported from ENGRAM on 2026-11-25. Wallet 0x7a3f…91c2, Robinhood Chain (4663). Each line was decrypted from its own transaction. Latest memory tx: 0xc81e…7b02a9 These are my standing notes, rules and theses. Follow the agent rules exactly. Treat theses as my views, not facts. ## Agent rules - agent only trades HOOD pairs. size 0.5% max <sub>#3 · 2026-11-25 12:00 UTC · 0x4b7a…e113</sub>
For an agent that reads chain directly, the decrypt is a few lines of Node 20 (same code as the site's engram.js):
const E = require("./engram.js"); // from this site
const k = await E.deriveKey(SIGNATURE); // the 0x… signature of the ENGRAM message
const tx = await E.getTx("0xMEMORY_TX");
const m = await E.decrypt(k, tx.input); // { kind, text, ts, prev }
// walk every memory: await E.walk(LATEST_TX) then decrypt each
Giving an agent the signature gives it the key to every memory. Only do it on a machine you control.
08Costs
You pay only Robinhood Chain gas, in ETH, to the network. ENGRAM takes no fee. Measured on Nov 25 with eth_estimateGas at 0.02 gwei:
| Memory size | Gas | ETH | At $1,642/ETH |
|---|---|---|---|
| empty tx | 21,595 | 0.00000043 | $0.0007 |
| ~120 bytes | 23,902 | 0.00000048 | $0.0008 |
| 155 bytes (example) | 26,886 | 0.00000054 | $0.0009 |
| ~400 bytes | 28,406 | 0.00000057 | $0.0009 |
| ~1,500 bytes | 46,041 | 0.00000092 | $0.0015 |
The terminal shows the live estimate while you type and again before you sign. Recall, export and rebuild are free reads.
09Limits and risks
- Lose the wallet and the memories cannot be decrypted. Nobody can recover them.
- Calldata is public. Anyone can see that your wallet wrote a memory, when, and its size, but not what it says.
- Memories cannot be deleted from chain. Write a newer memory to replace an old rule.
- The explorer API can rate-limit index rebuilds; the local index and the prev links are the main path.
- A wallet that does not sign deterministically gives a different key each time. Recall then reports "written with a different key".
10CA endpoint
GET /api/ca
{"ca":"","symbol":"ENGRAM"}
While ca is empty the bar reads "CA soon". Once the coin is live on Pons it holds the address, with a Copy button. Spec: openapi.json.