About 2 years ago I started working on this Java library in a WebOfTrustInfo repository:
It can convert encode/decode txrefs, and it can also look up transactions from the blockchain via 1. Blockcypher API, 2. bitcoind RPC, 3. btcd RPC. It’s used by the DIF Universal Resolver’s btcr driver:
On Monday this week in a call with Ryan, Dan and Michael, we agreed that the txref-conversion-java library should re-use the libtxref-java library, which is more recent and likely higher quality, to avoid duplication of efforts:
I started refactoring accordingly, seems to be working fine, see this branch:
My current thoughts:
- I think txref-conversion-java continues to be useful, since it has code for looking up transactions from the blockchain.
- Over time, if other Java libraries emerge that implement Bitcoin blockchain lookups, then txref-conversion-java could be completely deprecated.
- txref-conversion-java could perhaps be renamed to btc-tx-lookup-java or something like that, to better reflect what it does.
- Right now it lives under a WebOfTrustInfo repository. Is WebOfTrustInfo a place where code libraries should live, or should it be moved elsewhere?