scala bitcoin implementation