Closed eozturk1 closed 3 years ago
pointFromScalar
is publicKeyCreate
and isPrivate
is privateKeyVerify
pointFromScalar :: Buffer [-> Bool] -> Maybe Buffer
Returns null
if result is at infinity.
Expected Private
if !isPrivate(d)
isPrivate :: Buffer -> Bool
Returns false
if
d
is not 256-bit, ord
is not in [1..order - 1]
tiny-secp256k1
?secp256k1-node
provides functions (See below) for verifying private keys (privateKeyVerify
) and generating public keys from them (publicKeyCreate
). Are theretiny-secp256k1
equivalents?tiny-secp256k1
orsecp256k1-node
be used with the other (e.g., generate private/public key usingsecp256k1-node
and used it withsign (h, d)
/verify (h, Q, signature[, strict = false])
oftiny-secp256k1
?