For the record: I failed.
This code is way too coupled (with the UI as well as everything else) to extract a libBitCoin from it without deep knowledge of it.
I might try again, but then I'd start by cleaning the code from within the project, and only after that, try to extract a library out of it.
Am I the only one worrying about the structure of that code?