Zum Inhalt
HALOWERK

Nostrwerk

event sign

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.

POST https://nostr.halowerk.com/event-sign

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
modestringNeinpreimage: caller signs locally. ephemeral: single-use key generated here. verify: check a complete event.
pubkeystringNeinPublic key as hex or npub. Required in preimage mode, ignored otherwise.
kindintegerNeinNIP-01 event kind. 1 is a text note, 30023 a long-form article.
contentstringNeinEvent content.
tagsarrayNeinNIP-01 tags, each an array of strings, for example ["t","bitcoin"].
created_atintegerNeinUnix seconds. Left out, the current time is used.
eventobjectNeinThe complete event to check. Only used in verify mode.
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "mode": {
      "type": "string",
      "enum": [
        "preimage",
        "ephemeral",
        "verify"
      ],
      "default": "preimage",
      "description": "preimage: caller signs locally. ephemeral: single-use key generated here. verify: check a complete event."
    },
    "pubkey": {
      "type": "string",
      "description": "Public key as hex or npub. Required in preimage mode, ignored otherwise."
    },
    "kind": {
      "type": "integer",
      "minimum": 0,
      "maximum": 65535,
      "default": 1,
      "description": "NIP-01 event kind. 1 is a text note, 30023 a long-form article."
    },
    "content": {
      "type": "string",
      "maxLength": 64000,
      "default": "",
      "description": "Event content."
    },
    "tags": {
      "type": "array",
      "maxItems": 200,
      "items": {
        "type": "array",
        "items": {
          "type": "string"
        }
      },
      "description": "NIP-01 tags, each an array of strings, for example [\"t\",\"bitcoin\"]."
    },
    "created_at": {
      "type": "integer",
      "minimum": 0,
      "description": "Unix seconds. Left out, the current time is used."
    },
    "event": {
      "type": "object",
      "description": "The complete event to check. Only used in verify mode."
    }
  }
}

Originalschema öffnen

Veröffentlichtes Eingabebeispiel

{
  "mode": "preimage",
  "pubkey": "3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d",
  "kind": 1,
  "content": "hello nostr",
  "tags": [
    [
      "t",
      "bitcoin"
    ]
  ]
}

Ergebnis & Dokumentation

Maschinenlesbare Dokumentation dieses Hubs

Quelle dieser Seite: der veröffentlichte HALOWERK-Katalog. Stand: 2026-11-01, 15:19 UTC.

Weitere Endpunkte dieses Hubs

Alle Endpunkte dieses Hubs →