Go to file
Jacob Karlsson fc4c5777d0 Update readme to pzp 2024-04-27 22:50:33 +02:00
.github/workflows just ubuntu in CI 2023-06-12 14:48:46 +03:00
lib fix KeypairPublicSlice type 2023-06-25 17:09:29 +03:00
test replace Uint8Array with b4a 2023-06-15 13:53:51 +03:00
.gitignore another try with .d.ts 2023-06-25 16:50:34 +03:00
.prettierrc.yaml init 2023-06-12 14:22:15 +03:00
LICENSE init 2023-06-12 14:22:15 +03:00
README.md Update readme to pzp 2024-04-27 22:50:33 +02:00
package.json 1.0.0 2024-04-27 20:12:05 +02:00
tsconfig.json another try with .d.ts 2023-06-25 16:50:34 +03:00

README.md

pzp-keypair

Like ssb-keys, but for PZP.

Installation

npm install pzp-keypair

API:

  • generate(curve?, seed?) => Keypair {curve, public, private}
  • sign(keypair, msg, hmacKey?) => sig
  • verify(keypair, msg, sig, hmacKey?) => boolean
  • create(filepath, cb)
  • load(filepath, cb)
  • loadOrCreate(filepath, cb)
  • createSync(filepath)
  • loadSync(filepath)
  • loadOrCreateSync(filepath)