woleet / woleet-weblibs

Woleet WebLibs: Proof verification libraries for browsers and NodeJS.
MIT License
3 stars 3 forks source link

Access blockchain data through local Bitcoin node #1

Open lajarre opened 7 years ago

lajarre commented 7 years ago

Would it be possible to access remote data through usage of a local full node?

Being able to use different APIs is already a nice feature. But doing this locally would provide a fully auditable way to perform Chainpoint receipt validations through your library.

As a first step: do you know how this could be implemented using JSON-RPC?

vincentbarat commented 7 years ago

Hi, thanks for the question. It is a good idea. You need to add the call to your JSON RPC endpoint in he file woleet-api.js line 112. You can start from the "woleet.io" case source code, since https://api.woleet.io/v1/bitcoin/transaction is a simple proxy over the JSON RPC API of our own full node. Feel free to create a pull request on this. Cheers

Edit: I've tried, but there is some CORS issue here. I think a proxy is required for this to work

lajarre commented 6 years ago

Ok, I'll try suggesting a PR!