Пример #1
0
 def get_xpubkeys(self, for_change, n):
     # unsorted
     s = ''.join(map(lambda x: bitcoin.int_to_hex(x, 2), (for_change, n)))
     xpubs = self.get_master_pubkeys()
     return map(
         lambda xpub: 'ff' + bitcoin.DecodeBase58Check(xpub).encode('hex') +
         s, xpubs)
Пример #2
0
 def get_xpubkeys(self, sequence):
     s = ''.join(map(lambda x: bitcoin.int_to_hex(x,2), sequence))
     mpks = self.get_master_pubkeys()
     out = []
     for xpub in mpks:
         pubkey = self.get_pubkey_from_x(xpub, *sequence)
         x_pubkey = 'ff' + bitcoin.DecodeBase58Check(xpub).encode('hex') + s
         out.append( (pubkey, x_pubkey ) )
     # sort it, so that x_pubkeys are in the same order as pubkeys
     out.sort()
     return map(lambda x:x[1], out )
Пример #3
0
 def get_xpubkeys(self, for_change, n):
     s = ''.join(map(lambda x: bitcoin.int_to_hex(x, 2), (for_change, n)))
     mpk = self.mpk.encode('hex')
     x_pubkey = 'fe' + mpk + s
     return [x_pubkey]
Пример #4
0
 def get_xpubkey(self, for_change, n):
     s = ''.join(map(lambda x: bitcoin.int_to_hex(x, 2), (for_change, n)))
     return 'fe' + self.mpk + s
Пример #5
0
 def get_xpubkey(self, c, i):
     s = ''.join(map(lambda x: bitcoin.int_to_hex(x, 2), (c, i)))
     return 'ff' + bitcoin.DecodeBase58Check(self.xpub).encode('hex') + s
Пример #6
0
 def get_xpubkeys(self, for_change, n):
     # unsorted
     s = ''.join(map(lambda x: bitcoin.int_to_hex(x,2), (for_change,n)))
     xpubs = self.get_master_pubkeys()
     return map(lambda xpub: 'ff' + bitcoin.DecodeBase58Check(xpub).encode('hex') + s, xpubs)
Пример #7
0
 def get_xpubkeys(self, for_change, n):
     s = ''.join(map(lambda x: bitcoin.int_to_hex(x,2), (for_change, n)))
     mpk = self.mpk.encode('hex')
     x_pubkey = 'fe' + mpk + s
     return [ x_pubkey ]
Пример #8
0
 def get_xpubkeys(self, for_change, n):
     s = "".join(map(lambda x: bitcoin.int_to_hex(x, 2), (for_change, n)))
     mpk = self.mpk.encode("hex")
     x_pubkey = "fe" + mpk + s
     return [x_pubkey]
Пример #9
0
 def get_xpubkey(self, for_change, n):
     s = ''.join(map(lambda x: bitcoin.int_to_hex(x,2), (for_change, n)))
     return 'fe' + self.mpk + s
Пример #10
0
 def get_xpubkey(self, c, i):
     s = ''.join(map(lambda x: bitcoin.int_to_hex(x,2), (c, i)))
     return 'ff' + bitcoin.DecodeBase58Check(self.xpub).encode('hex') + s
Пример #11
0
 def get_xpubkeys(self, sequence):
     s = ''.join(map(lambda x: bitcoin.int_to_hex(x,2), sequence))
     mpk = self.mpk.encode('hex')
     x_pubkey = 'fe' + mpk + s
     return [ x_pubkey ]