コード例 #1
0
ファイル: trustedcoin.py プロジェクト: zeroharbor/electrum
def make_xpub(xpub, s):
    _, _, _, c, cK = deserialize_xkey(xpub)
    cK2, c2 = bitcoin._CKD_pub(cK, c, s)
    xpub2 = ("0488B21E" + "00" + "00000000" +
             "00000000").decode("hex") + c2 + cK2
    return EncodeBase58Check(xpub2)
コード例 #2
0
ファイル: trustedcoin.py プロジェクト: keepkey/electrum
 def make_xpub(self, xpub, s):
     _, _, _, c, cK = deserialize_xkey(xpub)
     cK2, c2 = bitcoin._CKD_pub(cK, c, s)
     xpub2 = ("0488B21E" + "00" + "00000000" + "00000000").decode("hex") + c2 + cK2
     return EncodeBase58Check(xpub2)
コード例 #3
0
def make_xpub(xpub, s):
    version, _, _, _, c, cK = deserialize_xpub(xpub)
    cK2, c2 = bitcoin._CKD_pub(cK, c, s)
    return bitcoin.serialize_xpub(version, c2, cK2)
コード例 #4
0
ファイル: trustedcoin.py プロジェクト: romanz/electrum
def make_xpub(xpub, s):
    version, _, _, _, c, cK = deserialize_xpub(xpub)
    cK2, c2 = bitcoin._CKD_pub(cK, c, s)
    return bitcoin.serialize_xpub(version, c2, cK2)