thaler icon indicating copy to clipboard operation
thaler copied to clipboard

Problem: no nodejs binding to the c api

Open yihuang opened this issue 4 years ago • 4 comments

https://github.com/node-ffi/node-ffi It can be used by:

  • typescript integration tests
  • sample wallet

yihuang avatar May 20 '20 08:05 yihuang

I think this issue may be potentially moved to cro-nodelib? Currently, Node.js library is having these Neon wrapper native bindings: https://github.com/crypto-com/cro-nodelib/tree/master/native/src

tomtau avatar May 20 '20 09:05 tomtau

neon bindings uses c , but i think support bindings based upon c-bindings also make sense.

leejw51crypto avatar May 21 '20 00:05 leejw51crypto

May I know more about the context, what's the purpose to introduce node-ffi here? And how does it relate to the c-binding?

foreseaz avatar May 21 '20 02:05 foreseaz

May I know more about the context, what's the purpose to introduce node-ffi here? And how does it relate to the c-binding?

Currently we have a c api which exposed all client-rpc functionality through unified api, and a python binding to it(https://github.com/crypto-com/chain/blob/master/integration-tests/bot/chainbinding.py), the python integration tests had switched to use it, works well. So a nodejs binding to it would be useful too, no need for client-rpc server in many situations.

yihuang avatar May 21 '20 03:05 yihuang