def Pubhex2addr(pubkeyhex, p2sh=False): Msg(mmb.hexaddr2addr(mmb.hash160(pubkeyhex), p2sh=p2sh))
def Hexaddr2addr(hexaddr): Msg(mmb.hexaddr2addr(hexaddr))
def pubkey2addr(pubkeyhex): Msg(bitcoin.hexaddr2addr(bitcoin.pubhex2hexaddr(pubkeyhex)))
def to_addr(self,pubhex): assert type(pubhex) == PubKey from mmgen.bitcoin import hexaddr2addr,hash160 return BTCAddr(hexaddr2addr(hash160(pubhex)))
def hexaddr2addr(hexaddr): Msg(bitcoin.hexaddr2addr(hexaddr))