예제 #1
0
 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
예제 #2
0
파일: bitcoin.py 프로젝트: clopez/caesure
 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)
예제 #3
0
 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
예제 #4
0
파일: bitcoin.py 프로젝트: joric/brutus
 def verify (self, index):
     hash, sig, pubkey = self.get_ecdsa_hash (index)
     k = KEY()
     k.set_pubkey (pubkey)
     return k.verify (hash, sig)