Example #1
0
def Pubhex2addr(pubkeyhex, p2sh=False):
    Msg(mmb.hexaddr2addr(mmb.hash160(pubkeyhex), p2sh=p2sh))
Example #2
0
def Hexaddr2addr(hexaddr):
    Msg(mmb.hexaddr2addr(hexaddr))
Example #3
0
def pubkey2addr(pubkeyhex):
	Msg(bitcoin.hexaddr2addr(bitcoin.pubhex2hexaddr(pubkeyhex)))
Example #4
0
	def to_addr(self,pubhex):
		assert type(pubhex) == PubKey
		from mmgen.bitcoin import hexaddr2addr,hash160
		return BTCAddr(hexaddr2addr(hash160(pubhex)))
Example #5
0
def hexaddr2addr(hexaddr):
	Msg(bitcoin.hexaddr2addr(hexaddr))