Fixed some errors in the Bitcoin library.