def verify1 (self, pub_key, sig, vhash): if building_txmap: return 1 else: k = KEY() #W ('pub_key=%r\n' % (pub_key,)) k.set_pubkey (pub_key) r = k.verify (vhash, sig) #print 'ecdsa verify...', r return r
def verify (self, index): outpoint, script, sequence = self.inputs[index] if outpoint == NULL_OUTPOINT: # generation is considered verified - I assume by virtue of its hash value? return 1 else: hash, sig, pubkey = self.get_ecdsa_hash (index) k = KEY() k.set_pubkey (pubkey) return k.verify (hash, sig)
def verify1(self, pub_key, sig, vhash): if building_txmap: return 1 else: k = KEY() #W ('pub_key=%r\n' % (pub_key,)) k.set_pubkey(pub_key) r = k.verify(vhash, sig) #print 'ecdsa verify...', r return r
def verify (self, index): hash, sig, pubkey = self.get_ecdsa_hash (index) k = KEY() k.set_pubkey (pubkey) return k.verify (hash, sig)