utils

Note utility functions

Source:

Methods

(private, inner) createSharedSecret(pubicKeyHex) → {Object|Object}

Create a Diffie-Hellman shared secret for a given public key

Parameters:
Name Type Description
pubicKeyHex Object

elliptic.js hex-formatted public key

Source:

(private, inner) getNoteHash(gamma, sigma) → {string}

Get the hash of a note's coordinates. Used as identifier in note registry

Parameters:
Name Type Description
gamma Object

AZTEC commitment base point

sigma Object

AZTEC commitment signed point

Source:

(private, inner) getSharedSecret(ephemeralPoint, privateKey) → {string}

Compute a Diffie-Hellman shared secret between an ephemeral point and a private key

Parameters:
Name Type Description
ephemeralPoint Object

secp256k1 point

privateKey Object

hex-string formatted private key

Source: