parameters: (wholeFile, doVerify=True)
return_statement: return MSGRAW
docstring: This method returns a pair: a dictionary to lookup link by OS, and
     a formatted string that is sorted by OS, and re-formatted list that
     will hash the same regardless of original format or ordering
docstring_summary: This method returns a pair: a dictionary to lookup link by OS, and
     a formatted string that is sorted by OS, and re-formatted list that
     will hash the same regardless of original format or ordering
docstring_tokens: This method returns a pair : a dictionary to lookup link by OS and a formatted string that is sorted by OS and re - formatted list that will hash the same regardless of original format or ordering
function: def extractSignedDataFromVersionsDotTxt(wholeFile, doVerify=True):
     """
     This method returns a pair: a dictionary to lookup link by OS, and
     a formatted string that is sorted by OS, and re-formatted list that
     will hash the same regardless of original format or ordering
     """
  
     msgBegin = wholeFile.find('# -----BEGIN-SIGNED-DATA-')
     msgBegin = wholeFile.find('\n', msgBegin+1) + 1
     msgEnd   = wholeFile.find('# -----SIGNATURE---------')
     sigBegin = wholeFile.find('\n', msgEnd+1) + 3
     sigEnd   = wholeFile.find('# -----END-SIGNED-DATA---')
  
     MSGRAW = wholeFile[msgBegin:msgEnd]
     SIGHEX = wholeFile[sigBegin:sigEnd].strip()
  
     if -1 in [msgBegin,msgEnd,sigBegin,sigEnd]:
        LOGERROR('No signed data block found')
        return ''
  
  
     if doVerify:
        Pub = SecureBinaryData(hex_to_binary(ARMORY_INFO_SIGN_PUBLICKEY))
        Msg = SecureBinaryData(MSGRAW)
        Sig = SecureBinaryData(hex_to_binary(SIGHEX))
        isVerified = CryptoECDSA().VerifyData(Msg, Sig, Pub)
  
        if not isVerified:
           LOGERROR('Signed data block failed verification!')
           return ''
        else:
           LOGINFO('Signature on signed data block is GOOD!')
  
     return MSGRAW
function_tokens: def extractSignedDataFromVersionsDotTxt ( wholeFile , doVerify = True ) : msgBegin = wholeFile . find ( '# -----BEGIN-SIGNED-DATA-' ) msgBegin = wholeFile . find ( '\n' , msgBegin + 1 ) + 1 msgEnd = wholeFile . find ( '# -----SIGNATURE---------' ) sigBegin = wholeFile . find ( '\n' , msgEnd + 1 ) + 3 sigEnd = wholeFile . find ( '# -----END-SIGNED-DATA---' ) MSGRAW = wholeFile [ msgBegin : msgEnd ] SIGHEX = wholeFile [ sigBegin : sigEnd ] . strip ( ) if - 1 in [ msgBegin , msgEnd , sigBegin , sigEnd ] : LOGERROR ( 'No signed data block found' ) return '' if doVerify : Pub = SecureBinaryData ( hex_to_binary ( ARMORY_INFO_SIGN_PUBLICKEY ) ) Msg = SecureBinaryData ( MSGRAW ) Sig = SecureBinaryData ( hex_to_binary ( SIGHEX ) ) isVerified = CryptoECDSA ( ) . VerifyData ( Msg , Sig , Pub ) if not isVerified : LOGERROR ( 'Signed data block failed verification!' ) return '' else : LOGINFO ( 'Signature on signed data block is GOOD!' ) return MSGRAW