Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function isPlainText(formattedData: string): boolean {
return formattedData.slice(0, 2) === MultiFormatTypes.prefix.PLAIN_TEXT;
}
constructor() {
super(MultiFormatTypes.prefix.ECIES_ENCRYPTED, EncryptionTypes.METHOD.ECIES);
}
}
function isEciesEncryption(formattedData: string): boolean {
return formattedData.slice(0, 2) === MultiFormatTypes.prefix.ECIES_ENCRYPTED;
}