@suku/suku-governance-eth-lib
v1.0.0
Published
A simple library used to handle SUKU's governance mechanism signing and verification accross microservices using Ethereum's Elliptic Curve Digitial Signature Algorithm.
Downloads
1
Keywords
Readme
SUKU Governance ETH Library
Welcome to the Governance ETH Library.
This library aims to abstract Ethereum interactions across multiple backend and frontend deployments to provide the functionality for Suku's governance mechanism.
This package is used in SUKU Governance and SUKU Governance UI.
Setup
npm install @suku/suku-governance-eth-lib
To run locally:
git clone [email protected]:SukuLab/suku-governance-eth-lib.gitcd governance-eth-libnpm installnpm run build
To test
npm run test
Example File
An example server is given in in ./src/example.ts Check out the example server and interact with the endpoints!
To Run Example
npm run example
Angular Configuration
This package uses a logger that requires fs.
fs is not supported in Angular so package.json must be updated to include the following:
"browser": {
"fs": false,
"path": false,
"os": false
},