Programming common Bitcoin operations