1.0.9 • Published 2 years ago

electron-ed25519 v1.0.9

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Electron-ed25519

Electron-ed25519 is a wrapper to interact with Electron-ed25519 dedicated server.

Installation

npm i electron-ed25519

Usage

//Initialise connection
import {Ed25519} from "electron-ed25519";

// Contact Electron Labs for dedicated endpoint and accesskey.
let endpoint = ""; 
let access_key = "";
const ed25519 = new Ed25519(endpoint, access_key);

// Check if server is live (returns true if server is alive)
let serverRunning = await ed25519.checkServerConnection();

// send a proof generation request for 50 sigs (return proof_generation_id in return)
let proof_gen_id = await ed25519.generateProofRequest(
    message, // send the message
    public_keys, // Array<string> 
    signatures, // Array<string>
)

// Get public inputs and proof once its generated
let res = await ed25519.getProof(proof_gen_id);
1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago