basic public key from private.

This commit is contained in:
fiatjaf
2022-02-11 16:47:50 -03:00
parent e7027c169a
commit 1d26118430
3 changed files with 30 additions and 2 deletions

View File

@@ -16,7 +16,7 @@ export default function EventSigning({value}) {
'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
)
let privateKeyIsValid = useComputedState(
() => privateKey.match(/[a-f0-9]{64}/),
() => privateKey.match(/^[a-f0-9]{64}$/),
[privateKey]
)
let publicKey = useComputedState(