Remove SignatureBouncer from drafts (#1879)

* Remove SignatureBouncer

* Update changelog entry

* Fix coverage

* Update CHANGELOG.md
This commit is contained in:
Nicolás Venturo
2019-08-16 15:49:13 -03:00
committed by GitHub
parent 89d07a2492
commit 226c6bd8f1
4 changed files with 14 additions and 274 deletions

View File

@ -14,6 +14,18 @@ contract('ECDSA', function ([_, other]) {
this.ecdsa = await ECDSAMock.new();
});
context('recover with invalid signature', function () {
it('with short signature', async function () {
expect(await this.ecdsa.recover(TEST_MESSAGE, '0x1234')).to.equal(ZERO_ADDRESS);
});
it('with long signature', async function () {
// eslint-disable-next-line max-len
expect(await this.ecdsa.recover(TEST_MESSAGE, '0x01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789'))
.to.equal(ZERO_ADDRESS);
});
});
context('recover with valid signature', function () {
context('with v0 signature', function () {
// Signature generated outside ganache with method web3.eth.sign(signer, message)