Write your model
in a lost script.
These glyphs are codex-16, a real model, written on Solana as ciphertext. Draw something and it answers.
Draw. The sealed model answers.
Your drawing is encrypted on this device, opened inside an enclave, and the answer comes back sealed to you, with a signed receipt.
The model receives32 pointsResampled along your strokes, scaled to a unit box, centred.
Draw one of 16 things
Seal, grant, call
Seal
Your device draws a 256-bit key and encrypts the weights in 1 KiB chunks. The ciphertext is written into Solana accounts and its hash is fixed. The model has an address.
Grant
The model key is wrapped to one enclave whose encryption key and measurement the chain has recorded. A granted enclave can grant the next one while the owner sleeps.
Call
Your input is encrypted to the enclave and the price waits in escrow. The answer comes back encrypted to you and signed by the enclave, with a receipt on chain.
answer
The label and its odds, decrypted on your side with a key that lived for one call.
receipt
The record of which model answered, inside which enclave, at which slot, with both hashes.
verified
The signature, the enclave's measurement and the record's expiry, checked before you read the answer.
import { call } from '/lib/seraph.js'