Implements Bitcoin functionality