https://github.com/bitcoin/bips/blob/master/bip-0300.mediawiki