kadence/eclipse~ EclipseIdentity

Generates an identity for use with the module:kadence/spartacus~SpartacusPlugin that satisfies a proof of work

Constructor

new EclipseIdentity(publicKey, nonceopt, proofopt)

Parameters:
NameTypeAttributesDescription
publicKeystring

SECP256K1 public key

noncenumber<optional>

Equihash proof nonce

proofbuffer<optional>

Equihash proof value

Methods

solve() → {Promise.<EclipseIdentity>}

Returns a equihash proof and resulting fingerprint

Returns:
Type: 
Promise.<EclipseIdentity>

validate() → {Promise.<boolean>}

Validates the

Returns:
Type: 
Promise.<boolean>