mleku on Nostr: cody it is definitely correct formatted message in the OK envelope if err = ...
cody (npub1syj…f6wl)it is definitely correct formatted message in the OK envelope
if err = okenvelope.NewFrom(env.Id, false,
normalize.AuthRequired.F("auth required for storing events")).Write(ws); chk.T(err) {
}
i put a print on that message composition function normalize.AuthRequired and this is what it prints:
1743483096.576174791 INF auth-required: auth required for storing events /home/mleku/src/realy.lol/normalize/normalize.go:121
that text gets pasted into the buffer for the envelope encoder
test after reload for auth message
Published at
2025-04-01 04:54:23Event JSON
{
"id": "a0e55ff4869572864ba6d151272fed55cbd95989d57b7f92298ae3a326ff5cf8",
"pubkey": "4c800257a588a82849d049817c2bdaad984b25a45ad9f6dad66e47d3b47e3b2f",
"created_at": 1743483263,
"kind": 1,
"tags": [
[
"q",
"ad9ab1271ee87c892259c80f27eac9eb89ca7b6c7ffe458473216d0d4bf3c450",
"wss://test.realy.lol/"
],
[
"p",
"8125b911ed0e94dbe3008a0be48cfe5cd0c0b05923cfff917ae7e87da8400883"
],
[
"client",
"jumble"
]
],
"content": "nostr:npub1syjmjy0dp62dhccq3g97fr87tngvpvzey08llyt6ul58m2zqpzps9wf6wl\n\nit is definitely correct formatted message in the OK envelope \n\n\t\t\t\t\tif err = okenvelope.NewFrom(env.Id, false,\n\t\t\t\t\t\tnormalize.AuthRequired.F(\"auth required for storing events\")).Write(ws); chk.T(err) {\n\t\t\t\t\t}\n\ni put a print on that message composition function normalize.AuthRequired and this is what it prints:\n\n1743483096.576174791 INF auth-required: auth required for storing events /home/mleku/src/realy.lol/normalize/normalize.go:121\n\nthat text gets pasted into the buffer for the envelope encoder\n\nnostr:nevent1qvzqqqqqqypzqnyqqft6tz9g9pyaqjvp0s4a4tvcfvj6gkke7mddvmj86w68uwe0qy2hwumn8ghj7ar9wd6zuun9v9k8jtnvdakz7qpq4kdtzfc7ap7gjgjeeq8j06kfawyu57mv0llytprny9ks6jlnc3gqh99fkg",
"sig": "7e21c9740685652afe7bb246ed57c09c997daf08b1a6d0d9a550dbb9e9e2d6fdd26585866d393a9ff87aeb9d2ce150a67b676ae873899b2cef1cdb99a5b3b187"
}