wrote a bitcoin lib