@catalyst-net-js/common
v0.3.7
Published
> A collection of utility functions for Catalyst
Downloads
56
Readme
Catalyst-js/common
A collection of utility functions for catalyst-js
Status: Active development. This repository is being actively worked on, mostly in feature branches.
Install
npm install @catalyst-net-js/common
Usage
Available functions
- bytesFromString(value: string)
- removeHexPrefix(value: string)
- bytesFromHexString(value: string)
- bytesFromBase32String(value: string)
- base32StringFromBytes(bytes: Uint8Array)
- getPublicKeyfromPrivate(privateKey: Uint8Array)
- isValidPrivate(privateKey: Uint8Array)
- isValidPublic(publicKey: Uint8Array)