hzrd149 on Nostr: For any web app that wants to use you should be able to re-use the code I've written ...
Published at
2024-02-01 09:30:05Event JSON
{
"id": "8fd3b3759ec9fe448a03a262052c568c106f8dc206ed1e22347189608460108e",
"pubkey": "266815e0c9210dfa324c6cba3573b14bee49da4209a9456f9484e5106cd408a5",
"created_at": 1706779805,
"kind": 1,
"tags": [
[
"p",
"726a1e261cc6474674e8285e3951b3bb139be9a773d1acf49dc868db861a1c11",
"",
"mention"
]
],
"content": "For any web app that wants to use https://github.com/greenart7c3/Amber you should be able to re-use the code I've written for it in noStrudel https://github.com/hzrd149/nostrudel/blob/master/src/services/amber-signer.ts\nThe only catch is you cant sign events without the user iterating with the UI. every signature request must originate from a user clicking a button or something. It has to do with browser security stuff\nnostr:nevent1qvzqqqqqqypzqun2rcnpe3j8ge6ws2z789gm8wcnn056wu734n6fmjrgmwrp58q3qqsx2n8qr67luchfa575nwwk2jayj00j75e09k0mgfr8s0q0culya0qnwpxvd",
"sig": "a462b7fb9a9dde6fdc5d08a94038995122b19f7cb5057fac1702aaa6457d193c866c4e7335d90d0ede24b9b8e74240d6cedf3a2c46d792c79c52c823b287eecb"
}