@holo-host/hp-admin-keypair
v0.3.0
Published
Client side package for signing API calls to HPOS Admin
Downloads
7
Keywords
Readme
HoloPort Admin Crypto Client
Front-end class for signing messages with ed-25519 keypair that is generated from HoloPort Host's credentials. Created keypair is stored in wasm memory.
API reference
On github pages.
Usage
import { HpAdminKeypair } from "@holo-host/hp-admin-keypair";
const HC_PUBLIC_KEY = "3llrdmlase6xwo9drzs6qpze40hgaucyf7g8xpjze6dz32s957";
const EMAIL = "[email protected]";
const PASSWORD = "abba";
// Create
let kp = new HpAdminKeypair(HC_PUBLIC_KEY, EMAIL, PASSWORD);
const payload = "String to sign";
console.log(kp.sign(payload));