예제 #1
0
파일: Output.py 프로젝트: TimTosi/spelunker
	def formatType5(self):
		"""Checks the script format."""
		i = 0
		while i < (self.scriptLength - 46):
			if self.outputScriptDecoded[i:i+2] == '76' and self.outputScriptDecoded[i+2:i+4] == "a9":
				i += 6
				return converter.keyHashToAddress(self.outputScriptDecoded[i:i+40])
			i += 1
		return "Invalid"
예제 #2
0
 def formatType5(self):
     """Checks the script format."""
     i = 0
     while i < (self.scriptLength - 46):
         if self.outputScriptDecoded[
                 i:i + 2] == '76' and self.outputScriptDecoded[i + 2:i +
                                                               4] == "a9":
             i += 6
             return converter.keyHashToAddress(
                 self.outputScriptDecoded[i:i + 40])
         i += 1
     return "Invalid"
예제 #3
0
 def formatType3(self):
     """Checks the script format."""
     if self.scriptLength >= 25 and self.outputScriptDecoded[
             0:2] == "76" and self.outputScriptDecoded[2:4] == 'a9':
         return converter.keyHashToAddress(self.outputScriptDecoded[6:46])
     return False
예제 #4
0
파일: Output.py 프로젝트: TimTosi/spelunker
	def formatType3(self):
		"""Checks the script format."""
		if self.scriptLength >= 25 and self.outputScriptDecoded[0:2] == "76" and self.outputScriptDecoded[2:4] == 'a9':
			return converter.keyHashToAddress(self.outputScriptDecoded[6:46])
		return False