open-index/open-npm huggingface dataset:
npm package: @holo-host/hp-admin-keypair
Description: Client side package for signing API calls to HPOS Admin
Latest version: 0.3.0

# 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](https://holo-host.github.io/hp-admin-crypto/client/docs/).

## Usage
```javascript
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));
```