Example #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)
Example #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 )
Example #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]
Example #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
Example #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
Example #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)
Example #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 ]
Example #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]
Example #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
Example #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
Example #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 ]