Skip to content

Instantly share code, notes, and snippets.

@you21979
Last active February 13, 2016 07:28
Show Gist options
  • Save you21979/81e8667190d34db62def to your computer and use it in GitHub Desktop.
Save you21979/81e8667190d34db62def to your computer and use it in GitHub Desktop.
bitcoin dsl
どんなウォレットを作るか定義する
<hdwallet>
<enum name="coin_type">
<const name="bitcoin" value="0" />
<const name="testnet" value="1" />
<const name="litecoin" value="2" />
</enum>
<enum name="change_type">
<const name="external" value="0" />
<const name="internal" value="1" />
</enum>
<structure name="deposit_wallet">
<const name="purpose" value="777" hardened="true" />
<param name="coin_type" type="coin_type" hardened="true" />
<param name="account" />
<param name="address_index" />
</structure>
<structure name="BIP44">
<const name="purpose" value="44" hardened="true" />
<param name="coin_type" type="coin_type" hardened="true" />
<param name="account" hardened="true" />
<param name="change" type="change_type" />
<param name="address_index" />
</structure>
</hdwallet>
https://github.com/satoshilabs/slips/blob/master/slip-0044.md
https://github.com/bitcoinjs/bip44-constants
コイン種別はsatoshilabの人がやってる
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment