bitcoin-specific convenience functions and types
