From f3cfd3e708608cc88f61fcb9c6c8b56fcfa9d030 Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Thu, 25 May 2017 13:54:56 +0200 Subject: Get rid of ETH --- src/ts/0x.js.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/ts/0x.js.ts b/src/ts/0x.js.ts index c0aaa06fa..ead1f56df 100644 --- a/src/ts/0x.js.ts +++ b/src/ts/0x.js.ts @@ -18,12 +18,12 @@ const MAX_DIGITS_IN_UNSIGNED_256_INT = 78; export class ZeroEx { /** * Verifies that the elliptic curve signature `signature` was generated - * by signing `data` with the private key corresponding to the `signerETHAddressHex` address. + * by signing `data` with the private key corresponding to the `signerAddressHex` address. */ - public static isValidSignature(dataHex: string, signature: ECSignature, signerETHAddressHex: string): boolean { + public static isValidSignature(dataHex: string, signature: ECSignature, signerAddressHex: string): boolean { assert.isHexString('dataHex', dataHex); assert.doesConformToSchema('signature', signature, ECSignatureSchema); - assert.isETHAddressHex('signerAddress', signerETHAddressHex); + assert.isETHAddressHex('signerAddressHex', signerAddressHex); const dataBuff = ethUtil.toBuffer(dataHex); const msgHashBuff = ethUtil.hashPersonalMessage(dataBuff); @@ -33,7 +33,7 @@ export class ZeroEx { ethUtil.toBuffer(signature.r), ethUtil.toBuffer(signature.s)); const retrievedAddress = ethUtil.bufferToHex(ethUtil.pubToAddress(pubKey)); - return retrievedAddress === signerETHAddressHex; + return retrievedAddress === signerAddressHex; } catch (err) { return false; } -- cgit v1.2.3