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"
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"
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
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