@holo-host/hp-admin-keypair
TypeScript icon, indicating that this package has built-in type declarations

0.3.0 • Public • Published

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 = "pj@abba.pl";
const PASSWORD = "abba";

// Create
let kp = new HpAdminKeypair(HC_PUBLIC_KEY, EMAIL, PASSWORD);

const payload = "String to sign";

console.log(kp.sign(payload));

Readme

Keywords

none

Package Sidebar

Install

npm i @holo-host/hp-admin-keypair

Weekly Downloads

20

Version

0.3.0

License

MIT

Unpacked Size

487 kB

Total Files

9

Last publish

Collaborators

  • mrruby
  • evangineer
  • brisebom
  • peeech
  • jetttech
  • robbiecarlton
  • zo-el