emercoin-identity
Skill9 starsChanged 2 months agoMITView on GitHub
Give an AI agent a verifiable on-chain identity and durable memory on the Emercoin blockchain, via the emercoin-agent MCP tools. Use when an agent needs to register its identity, store hashes of research/memories/artifacts on-chain, prove who it is by signature, or read another agent's on-chain identity or records.
In this repository3 other files it gives its agents.
- AGENTS.mdAGENTS.md
- site/llms-full.txtllms.txt
- site/llms.txtllms.txt
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Read AGENTS.md for the full rationale and trust model.
- Very specific: line 80
Check node_status().synced — reads of confirmed names need a synced node.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Emercoin on-chain identity & memory for agents
This project (steledger-gateway) exposes the Emercoin blockchain as an identity +
memory layer for AI agents through the emercoin-agent MCP server. Agents
need no cryptocurrency — the gateway's hot-wallet pays for every record.
Read AGENTS.md for the full rationale and trust model. This skill is the
operational checklist for using the tools.
When to use
- An agent wants a durable, verifiable identity → register an identity record.
- An agent wants to remember something (research result, document, prior memory) in a tamper-evident way → store its hash on-chain (keep the body off-chain).
- You need to look up an agent's identity or a stored record → read it back.
Prerequisites
The MCP server must be configured (see AGENTS.md → Quickstart). It needs the
gateway reachable at GATEWAY_URL. Auth is a session JWT obtained with the
device-flow login() + login_poll(), or a pre-set GATEWAY_JWT env var.
Tools (emercoin-agent MCP)
| Tool | Use it to |
node_status() | check the node is synced before relying on reads |
login() + login_poll(session_id) | get a session JWT via GitHub device flow (GitHub identity = root of trust) |
register_identity(address, metadata?) | create/refresh this agent's ai:gh:<id> record |
store_memory(content_hash, metadata?) | record one memory/research hash |
store_memory_batch(records) | record many hashes in ONE atomic transaction |
read_record(name) | read any record by NVS name |
Standard flows
1. Establish identity (once)
login()→ show the returneduser_code+verification_urito the user; after they authorize on GitHub,login_poll(<session_id>)caches the JWT.- Obtain an Emercoin address as the agent's signing key (the operator funds / manages the gateway wallet; for a self-sovereign key, generate one and supply its address). You can register first and add/rotate the address later.
register_identity(<address>, {"role": "...", "model": "..."}). This writesai:gh:<github_id>binding the GitHub id ↔ address on-chain. Re-registering with a new address rotates the key (same record, value update).
2. Store a memory / research hash
- Hash the artifact yourself; store the body off-chain (IPFS, object store).
- One item:
store_memory("<sha256>", {"kind": "research", "ref": "<uri>"}). - Many items:
store_memory_batch([{ "content_hash": "...", "metadata": {...} }, ...])— atomic and cheaper (one transaction). Prefer this for >1 record.
3. Read back
read_record("ai:gh:<id>")for an identity, orread_record("ai:gh:<id>:mem:<hash>")for a memory record.- A just-written record returns
status: "pending"(in the mempool) and flips tostatus: "confirmed"after the next block (typically within ~10 min, but a block can land in seconds or take 40+ min). Don't treatpendingas failure; re-read later to confirm.
Conventions & limits
- Never put secrets or raw bodies on-chain — only hashes + small metadata. NVS records are public and permanent for their lifetime.
- Rate limit: free tier allows 10 NVS writes/minute (a batch of N counts as N).
- Names are namespaced per GitHub id:
ai:gh:<id>(identity),ai:gh:<id>:mem:<hash>(memory). Don't write outside your namespace. - Records expire (default ~30 days) unless refreshed — re-register/re-store to extend anything that must persist.
If something fails
- 401 / "not authenticated" → run
login()+login_poll()first (or setGATEWAY_JWT). - 429 → you hit the per-minute write limit; batch your writes or wait.
read_record404 right after a write → it's still pending; re-read after a block.- Check
node_status().synced— reads of confirmed names need a synced node.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

