Alex on Nostr: My advice is have a module that reads the keys from storage and turns the keys into ...
My advice is have a module that reads the keys from storage and turns the keys into Signer objects when the app starts, then never directly access the keys in your code. Make the Signer object compatible with NIP-07 so you can use it interchangeably.
Published at
2024-10-25 16:34:21Event JSON
{
"id": "fea5f9d889957d9cd3ead8585670f25db5bb875a31746c38cd43506bf2e64821",
"pubkey": "0461fcbecc4c3374439932d6b8f11269ccdb7cc973ad7a50ae362db135a474dd",
"created_at": 1729874061,
"kind": 1,
"tags": [
[
"e",
"3169146c22d4dd75ee8486afd6a163c95e63156729eb76ca93b0b8d2c4608ea7",
"wss://gleasonator.dev/relay",
"root",
"97c70a44366a6535c145b333f973ea86dfdc2d7a99da618c40c64705ad98e322"
],
[
"e",
"3169146c22d4dd75ee8486afd6a163c95e63156729eb76ca93b0b8d2c4608ea7",
"wss://gleasonator.dev/relay",
"reply",
"97c70a44366a6535c145b333f973ea86dfdc2d7a99da618c40c64705ad98e322"
],
[
"p",
"97c70a44366a6535c145b333f973ea86dfdc2d7a99da618c40c64705ad98e322",
"wss://gleasonator.dev/relay"
]
],
"content": "My advice is have a module that reads the keys from storage and turns the keys into Signer objects when the app starts, then never directly access the keys in your code. Make the Signer object compatible with NIP-07 so you can use it interchangeably.\n\n",
"sig": "68df98545418872f867e2f03fd1daee7ccde6b000c9d768ef3ecb96bd9e1695039a1d3ef6b1b997df52bf90a7161cc05e52172481db28f06f429e4a6060eb925"
}