Constructor
new EclipseIdentity(publicKey, nonceopt, proofopt)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
publicKey | string | SECP256K1 public key | |
nonce | number | <optional> | Equihash proof nonce |
proof | buffer | <optional> | Equihash proof value |
- Source
Methods
solve() → {Promise.<EclipseIdentity>}
Returns a equihash proof and resulting fingerprint
- Source
Returns:
- Type:
- Promise.<EclipseIdentity>
validate() → {Promise.<boolean>}
Validates the
- Source
Returns:
- Type:
- Promise.<boolean>