The only reference lib is Bitcoin Core