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