예제 #1
0
def Hash160(pubkeyhex):
    Msg(mmb.hash160(pubkeyhex))
예제 #2
0
def Pubhex2addr(pubkeyhex, p2sh=False):
    Msg(mmb.hexaddr2addr(mmb.hash160(pubkeyhex), p2sh=p2sh))
예제 #3
0
	def to_addr(self,pubhex):
		assert type(pubhex) == PubKey
		from mmgen.bitcoin import hexaddr2addr,hash160
		return BTCAddr(hexaddr2addr(hash160(pubhex)))