0.1.4 • Published 5 months ago

cryptononce v0.1.4

Weekly downloads
-
License
Open BSV License
Repository
-
Last release
5 months ago

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.