cryptononce
v0.1.4
Published
Babbage nonce creation and verification
Downloads
291
Readme
CryptoNonce
Babbage nonce creation and verification!
API
Table of Contents
createNonce
Creates a nonce derived from a privateKey
Parameters
privateKey
string Private key to derive the nonce from.
Returns Buffer a random nonce derived from the provided private key.
verifyNonce
Verifies a nonce derived from a privateKey
Parameters
nonce
string a nonce to verify as a as a base64 string.privateKey
string a privateKey as a hex string used to derive the nonce.
Returns Boolean the status of the validation
License
The license for the code in this repository is the Open BSV License.