Nostrのリレーにノートを投稿できるプログラム。
ミニマルな構成のため、あっちこっちライブラリを飛びながら読まなくても流れが分かる…かもしれない。
楕円曲線暗号による署名の部分はすぐには作れないので、go-nostrで使っているライブラリを流用した。
リポジトリ
https://github.com/jundow/nostrexamples/tree/main
ミニマル構成のNostr投稿プログラム
https://github.com/jundow/nostrexamples/blob/main/ex3/main.go
Websocketライブラリ使って Nostr のリレーから情報を持ってくる練習です。
わたしみたいに非プログラマだけどリレーの動作やWebsocketに興味ある人には多少役に立つかも?
リポジトリ
https://github.com/jundow/nostrexamples
自分のNoteを取ってくる
https://github.com/jundow/nostrexamples/blob/main/ex1/main.go
自分のフォロワーのNoteをとってくる
https://github.com/jundow/nostrexamples/blob/main/ex2/main.go
間違えた。自分のフォロワーじゃなくて「自分のフォローのNoteをとってくる」だ。
Websocketライブラリ使って Nostr のリレーから情報を持ってくる練習です。
わたしみたいに非プログラマだけどリレーの動作やWebsocketに興味ある人には多少役に立つかも?
リポジトリ
https://github.com/jundow/nostrexamples
自分のNoteを取ってくる
https://github.com/jundow/nostrexamples/blob/main/ex1/main.go
自分のフォロワーのNoteをとってくる
https://github.com/jundow/nostrexamples/blob/main/ex2/main.go
というか皆さん、NIPs の解説よんだだけで、どんなプロトコルで通信してるのか理解できるのすごいね。みんなあたまいいね。あれ読んだだけじゃよくわからんよ…。nos.lolに謎プロトコル投げながら探り探りしてたよ…。
What kind of language do you think will be suitable? What will be the differences from conventional languages? More precise based on a strict rule? Or more efficient by cutting edges? I am curious.
(English composition practice)
Three frequently used but untranslatable Japanese phrases - "Yoroshiku-Onegai-Shimasu", "Ganbatte!" and "Otsukare-sama"
test12-1
The weather is not fine today. For some reason, my mind is not very good either.
I hope the weather and my mind will better before I go outside for chores.
