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