jurjendevries on Nostr: Thanks. I've seen the specs quickly a while ago and understand there are multiple ...
Thanks. I've seen the specs quickly a while ago and understand there are multiple nips. Just want to write a 'Hello world' note or so in NIP-01, sign it and send it to an existing relay. Asking this to chatgpt comes with libraries such as nostr-tools and when asked without it, another one for the cryptography. I prefer an example where its without those libraries linked in the code, and the needed code/javascript for cryptography, signing, websockets etc is directly in the same html/javascript file. I hope there is such an example so I can understand it bit by bit, and to have it fully client side without external dependencies.
Published at
2024-04-18 14:46:45Event JSON
{
"id": "d1ec8ec0ad3d1ea5f1d19e8f7b167b6ccb8c79e0adc5551cf869ded62b31b653",
"pubkey": "ffbcb7069f7aa5d6db129eb39e7d8a9789466d255a637bac1ebf8617b0574044",
"created_at": 1713451605,
"kind": 1,
"tags": [
[
"e",
"235d7871167b04c79620dbee07e10b4717ca7c231ced7159c39fb65e5eb0a517",
"wss://relay.primal.net",
"root"
],
[
"p",
"ffbcb7069f7aa5d6db129eb39e7d8a9789466d255a637bac1ebf8617b0574044"
],
[
"p",
"17538dc2a62769d09443f18c37cbe358fab5bbf981173542aa7c5ff171ed77c4"
],
[
"p",
"ffbcb7069f7aa5d6db129eb39e7d8a9789466d255a637bac1ebf8617b0574044"
],
[
"p",
"7f4f672af0cb2e9263f525d68f3043c05c1e7a1ade5aaf4b89afc400c184579e"
]
],
"content": "Thanks. I've seen the specs quickly a while ago and understand there are multiple nips. Just want to write a 'Hello world' note or so in NIP-01, sign it and send it to an existing relay. Asking this to chatgpt comes with libraries such as nostr-tools and when asked without it, another one for the cryptography. I prefer an example where its without those libraries linked in the code, and the needed code/javascript for cryptography, signing, websockets etc is directly in the same html/javascript file. I hope there is such an example so I can understand it bit by bit, and to have it fully client side without external dependencies.",
"sig": "88af4db0869574ea72764d53d7b5d9cf5f085db26f90eadb27ef79ce10985c5aafdb7b279575b6ed2cc9946f0623951d2f7055891b679d6864a7b9018c529cac"
}