class Eth::Key::Decrypter
def check_macs
def check_macs mac1 = keccak256(key[(key_length/2), key_length] + ciphertext) mac2 = hex_to_bin crypto_data['mac'] if mac1 != mac2 raise "Message Authentications Codes do not match!" end end
def check_macs mac1 = keccak256(key[(key_length/2), key_length] + ciphertext) mac2 = hex_to_bin crypto_data['mac'] if mac1 != mac2 raise "Message Authentications Codes do not match!" end end