Code Monkey home page Code Monkey logo

hp-js-client's Introduction

HotPocket javascript client

HotPocket javascript client library to support json and bson protocols in NodeJs and Browser environments.

Publish to npm

npm install
npm login
npm run publish

Testing example client

cd example
npm install
node client.js

NPM package

https://www.npmjs.com/package/hotpocket-js-client

Browser BSON support

For BSON support in browser, a slightly modified version of https://www.npmjs.com/package/bson is used. The minified library includes this bson support library as well.

hp-js-client's People

Contributors

ravinsp avatar chalith avatar du1ana avatar

Stargazers

tequ avatar

Watchers

 avatar Kithmini Gunawardhana avatar  avatar  avatar Wo Jake avatar

hp-js-client's Issues

Client JSON blob signing and Contract validation of signature.

Screen Shot 2023-04-27 at 16 55 49

I would like to achieve something along the lines of the following.

  1. take a JSON object convert it to a string.
  2. sign that string with the client privateKey and push it to the contract
  3. on the contract now validate that the String received was signed by the publicKey that the clie
    nt used.

Or is that already happening automatically via a client.submitContractInput(JSON.stringify(data)) ... my assumption is that nothing is encoded/decoded?

Screen Shot 2023-04-27 at 17 00 05

where in the contract anything that has been sent from the user.publicKey has already been signed?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.