Closed devwarrior777 closed 5 years ago
Some context: https://github.com/xaur/decred-issues/issues/8
Here is an example of the above suggestion.
https://github.com/devwarrior777/atomicswap/tree/libs
Took one coin (Zcoin, XZC) and refactored decred/atomicswap/
The core of the new libs/xzc code is commands.go which is a Public interface/api into the HTLC and RPC functionality.
This could be taken further by including all coin-specific code in it's respective libs/
Cheers
Added protocol buffers bindings for example refactor above
https://github.com/devwarrior777/atomicswap/blob/libs/libs/protobind/atomicswap.proto
... for future gRPC / non-golang language support
This is interesting work and would definitely be useful to some applications, but I feel that it is currently out of scope for this project and may require extra work for maintainers who have already ported their tools. Perhaps if/when the DEX development begins, this can be reconsidered.
Thoughts about building on top of decred/atomic swaps code:
The tools are great as a PoC but difficult to use from other code