示例#1
0
def Pubhex2addr(pubkeyhex, p2sh=False):
    Msg(mmb.hexaddr2addr(mmb.hash160(pubkeyhex), p2sh=p2sh))
示例#2
0
def Hexaddr2addr(hexaddr):
    Msg(mmb.hexaddr2addr(hexaddr))
示例#3
0
文件: tool.py 项目: etherume/mmgen
def pubkey2addr(pubkeyhex):
	Msg(bitcoin.hexaddr2addr(bitcoin.pubhex2hexaddr(pubkeyhex)))
示例#4
0
	def to_addr(self,pubhex):
		assert type(pubhex) == PubKey
		from mmgen.bitcoin import hexaddr2addr,hash160
		return BTCAddr(hexaddr2addr(hash160(pubhex)))
示例#5
0
文件: tool.py 项目: etherume/mmgen
def hexaddr2addr(hexaddr):
	Msg(bitcoin.hexaddr2addr(hexaddr))