diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-05-25 19:00:56 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-05-25 19:02:15 +0800 |
commit | 74a80c28d348da6e4050e43e713113c4c0df87df (patch) | |
tree | 5f5dca5a19e09ead63e9ab6c3f931a000d2bab11 /src/ts/0x.js.ts | |
parent | dc1ca23e3006dc614e512353aa2ae354e584f1cf (diff) | |
download | dexon-sol-tools-74a80c28d348da6e4050e43e713113c4c0df87df.tar dexon-sol-tools-74a80c28d348da6e4050e43e713113c4c0df87df.tar.gz dexon-sol-tools-74a80c28d348da6e4050e43e713113c4c0df87df.tar.bz2 dexon-sol-tools-74a80c28d348da6e4050e43e713113c4c0df87df.tar.lz dexon-sol-tools-74a80c28d348da6e4050e43e713113c4c0df87df.tar.xz dexon-sol-tools-74a80c28d348da6e4050e43e713113c4c0df87df.tar.zst dexon-sol-tools-74a80c28d348da6e4050e43e713113c4c0df87df.zip |
Remove type aliases
Diffstat (limited to 'src/ts/0x.js.ts')
-rw-r--r-- | src/ts/0x.js.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ts/0x.js.ts b/src/ts/0x.js.ts index d189b48b1..a3a83670d 100644 --- a/src/ts/0x.js.ts +++ b/src/ts/0x.js.ts @@ -20,10 +20,10 @@ export class ZeroEx { * Verifies that the elliptic curve signature `signature` was generated * by signing `data` with the private key corresponding to the `signer` address. */ - public static isValidSignature(dataHex: string, signature: ECSignature, signer: ETHAddressHex): boolean { + public static isValidSignature(dataHex: string, signature: ECSignature, signerAddress: string): boolean { assert.isHexString('dataHex', dataHex); assert.doesConformToSchema('signature', signature, ECSignatureSchema); - assert.isETHAddressHex('signer', signer); + assert.isETHAddressHex('signerAddress', signerAddress); 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 === signer; + return retrievedAddress === signerAddress; } catch (err) { return false; } |