aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-05-25 19:54:56 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-05-25 19:54:56 +0800
commitf3cfd3e708608cc88f61fcb9c6c8b56fcfa9d030 (patch)
treeacd0984b53d3e47c094784e39cd24cbdd75b2b04 /src
parent612019f5e7c75210ecdb3d81f4337a5bf16b45e5 (diff)
downloaddexon-sol-tools-f3cfd3e708608cc88f61fcb9c6c8b56fcfa9d030.tar
dexon-sol-tools-f3cfd3e708608cc88f61fcb9c6c8b56fcfa9d030.tar.gz
dexon-sol-tools-f3cfd3e708608cc88f61fcb9c6c8b56fcfa9d030.tar.bz2
dexon-sol-tools-f3cfd3e708608cc88f61fcb9c6c8b56fcfa9d030.tar.lz
dexon-sol-tools-f3cfd3e708608cc88f61fcb9c6c8b56fcfa9d030.tar.xz
dexon-sol-tools-f3cfd3e708608cc88f61fcb9c6c8b56fcfa9d030.tar.zst
dexon-sol-tools-f3cfd3e708608cc88f61fcb9c6c8b56fcfa9d030.zip
Get rid of ETH
Diffstat (limited to 'src')
-rw-r--r--src/ts/0x.js.ts8
1 files changed, 4 insertions, 4 deletions
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;
}