sidetree icon indicating copy to clipboard operation
sidetree copied to clipboard

Error: Invalid network - Support for alternative networks

Open sondreb opened this issue 3 years ago • 1 comments

The WIF import currently only support Bitcoin. The "BitcoinClient" type takes an argument where I potentially could provide an alternative instance and not just the WIF, but as of now the ION implementation does not create an instance of BitcoinClient directly and that type will create an instance of BitcoinWallet, which fails with "Invalid network".

What route would be the right one to proceed with running ION/Sidetree with a Bitcoin-compatible (RPC) blockchain?

sondreb avatar Feb 15 '21 10:02 sondreb

Wow, sorry that we missed this entirely for months!

Assuming if the alternate network is 100% "bitcoin-compatible" then the BitcoinWallet should not fail with invalid network. I would have to setup that network and debug to see what's the cause.

But generally speaking to use Sidetree reference implementation on a different network, one would need to implement a blockchain service adhering to the Blockchain REST API Spec.`, the bitcoin folder is simply an implementation of it.

thehenrytsai avatar Sep 09 '21 20:09 thehenrytsai