mirror of
https://github.com/fiatjaf/nak.git
synced 2025-12-17 04:18:50 +00:00
generate keypair and display nsec.
This commit is contained in:
@@ -63,6 +63,15 @@ object Main extends IOWebApp {
|
||||
.printWith(jsonPrinter)
|
||||
)
|
||||
))
|
||||
),
|
||||
button(
|
||||
Styles.button,
|
||||
"generate keypair",
|
||||
onClick --> (_.foreach(_ =>
|
||||
store.input.set(
|
||||
NIP19.encode(PrivateKey(randomBytes32()))
|
||||
)
|
||||
))
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user