WhiteflagProtocol / whiteflag-api

Reference implementation of the Whiteflag protocol in Node.js that acts as an API to connect applications with the underlying blockchains
https://api.whiteflagprotocol.org
Other
4 stars 5 forks source link

Refactored and implemented bitcoin connector #23

Closed cristianvanderwey closed 3 years ago

cristianvanderwey commented 3 years ago

Split the bitcoin connector in several services for maintainabilit -bitcoinAccountService -bitcoinRpcService -bitcoinTransactionService -bitcoinUtxoService

Added the necessary functions to send OP_RETURN messages, send transactions and scan for UTXO's: Added functionality to synchronize accounts and track latest blocknumber on startup.

TODO -Transaction id tracking to make sure the transaction is submitted to the blockchain -Specify blocks where utxos are located for a new account so that not the whole blockchain needs to be searched for utxo's