{"slug":"nostr-halowerk-com-event-sign-d4c57c","title":"Three modes over the same event structure","host":"nostr.halowerk.com","method":"POST","resource":"https://nostr.halowerk.com/event-sign","category":"other","description":"Three modes over the same event structure. In preimage mode the caller supplies a public key and the event fields; the answer holds the exact NIP-01 serialisation, the SHA-256 event id derived from it and the 32 bytes to sign, so the caller signs locally and no secret key ever crosses the connection","price_listed":0.001,"price_asked":0.001,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":1190,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"mode":"preimage","pubkey":"beispiel"},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"additionalProperties":false,"properties":{"content":{"default":"","description":"Event content.","maxLength":64000,"type":"string"},"created_at":{"description":"Unix seconds. Left out, the current time is used.","minimum":0,"type":"integer"},"event":{"description":"The complete event to check. Only used in verify mode.","type":"object"},"kind":{"default":1,"description":"NIP-01 event kind. 1 is a text note, 30023 a long-form article.","maximum":65535,"minimum":0,"type":"integer"},"mode":{"default":"preimage","description":"preimage: caller signs locally. ephemeral: single-use key generated here. verify: check a complete event.","enum":["preimage","ephemeral","verify"],"type":"string"},"pubkey":{"description":"Public key as hex or npub. Required in preimage mode, ignored otherwise.","type":"string"},"tags":{"description":"NIP-01 tags, each an array of strings, for example [\"t\",\"bitcoin\"].","items":{"items":{"type":"string"},"type":"array"},"maxItems":200,"type":"array"}},"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-10-10","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.001,"price_match":true,"latency_ms":1190,"error":null}],"description_full":"Three modes over the same event structure. In preimage mode the caller supplies a public key and the event fields; the answer holds the exact NIP-01 serialisation, the SHA-256 event id derived from it and the 32 bytes to sign, so the caller signs locally and no secret key ever crosses the connection.","last_updated":"2026-10-08T12:49:39.812Z","schemes":["exact"]}