Golang と Blockchain 技術の勉強に、こちら の記事を参考にして Bitcoin の SPV Wallet を Golang で実装してみました。 github.com 結構雑ですが、とりあえず以下のことができます。 Bitcoin Address の生成 UTXOをかき集めて残高を計算 UTXOをかき集めて指定したBitcoin Addressに送金 実用には耐えませんが簡単なSPV Walletの一通りの機能は実装できたかなと思います (そんなことなくてエラーハンドリングが雑だったりP2Pノードとしての役目を放棄してたり、取得するmerkleblockをハードコードした高さより高いblockのみ取得するようになってたりする) 参考 実装の際には主に @lotz氏のこちらの記事を参考に実装しました(ほとんど氏の実装をGolangに移植しただけw + 計算したUTXOを使っ