npm.io
0.1.4 • Published 2 years ago

cryptononce

Licence
Open BSV License
Version
0.1.4
Deps
0
Size
6 kB
Vulns
0
Weekly
0

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.