Remove test as not able to run it with waffle

The PoC works so we know the functionality is here, this was here
to prevent regression.
This commit is contained in:
Franck Royer 2021-06-21 16:38:06 +10:00
parent 6cb92dd4b9
commit 891897fe63
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
6 changed files with 0 additions and 19110 deletions

View File

@ -1,6 +0,0 @@
pragma solidity ^0.6.0;
contract Dummy {
constructor() public {
}
}

View File

@ -1,24 +0,0 @@
{
"abi": [
{
"inputs": [],
"stateMutability": "nonpayable",
"type": "constructor"
}
],
"evm": {
"bytecode": {
"linkReferences": {},
"object": "6080604052348015600f57600080fd5b50603f80601d6000396000f3fe6080604052600080fdfea264697066735822122085ecc1272da81a9643c13d0f593ec5056152ae255b6b63d3368e440c9cffe75c64736f6c63430006020033",
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH1 0xF JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x3F DUP1 PUSH1 0x1D PUSH1 0x0 CODECOPY PUSH1 0x0 RETURN INVALID PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 DUP6 0xEC 0xC1 0x27 0x2D 0xA8 BYTE SWAP7 NUMBER 0xC1 RETURNDATASIZE 0xF MSIZE RETURNDATACOPY 0xC5 SDIV PUSH2 0x52AE 0x25 JUMPDEST PUSH12 0x63D3368E440C9CFFE75C6473 PUSH16 0x6C634300060200330000000000000000 ",
"sourceMap": "25:47:0:-:0;;;44:26;8:9:-1;5:2;;;30:1;27;20:12;5:2;44:26:0;25:47;;;;;;"
},
"deployedBytecode": {
"linkReferences": {},
"object": "6080604052600080fdfea264697066735822122085ecc1272da81a9643c13d0f593ec5056152ae255b6b63d3368e440c9cffe75c64736f6c63430006020033",
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 DUP6 0xEC 0xC1 0x27 0x2D 0xA8 BYTE SWAP7 NUMBER 0xC1 RETURNDATASIZE 0xF MSIZE RETURNDATACOPY 0xC5 SDIV PUSH2 0x52AE 0x25 JUMPDEST PUSH12 0x63D3368E440C9CFFE75C6473 PUSH16 0x6C634300060200330000000000000000 ",
"sourceMap": "25:47:0:-:0;;;;;"
}
},
"bytecode": "6080604052348015600f57600080fd5b50603f80601d6000396000f3fe6080604052600080fdfea264697066735822122085ecc1272da81a9643c13d0f593ec5056152ae255b6b63d3368e440c9cffe75c64736f6c63430006020033"
}

File diff suppressed because it is too large Load Diff

View File

@ -25,7 +25,6 @@
"scripts": {
"start": "react-scripts start",
"build": "run-s build:*",
"build:waffle": "waffle",
"build:react": "react-scripts build",
"test:unit": "react-scripts test",
"eject": "react-scripts eject",
@ -56,9 +55,7 @@
]
},
"devDependencies": {
"@ethereum-waffle/jest": "^3.2.2",
"@ethersproject/shims": "^5.3.0",
"ethereum-waffle": "^3.3.0",
"npm-run-all": "^4.1.5"
}
}

View File

@ -1,26 +0,0 @@
import '@ethersproject/shims';
import {
createPublicKeyMessage,
generateEthDmKeyPair,
validatePublicKeyMessage,
} from './crypto';
import { MockProvider } from 'ethereum-waffle';
import { waffleJest } from '@ethereum-waffle/jest';
expect.extend(waffleJest);
test('Signature of Eth-DM key is verifiable', async () => {
console.log('get wallet');
const [wallet] = new MockProvider().getWallets();
console.log('Generate Keys');
const ethDmKeys = await generateEthDmKeyPair(wallet);
console.log('Create EthDm message');
const ethDmMsg = await createPublicKeyMessage(wallet, ethDmKeys.publicKey);
console.log('Verify EthDm message');
const res = validatePublicKeyMessage(ethDmMsg);
expect(res).toBe(true);
});

View File

@ -1,6 +0,0 @@
{
"compilerType": "solcjs",
"compilerVersion": "0.6.2",
"sourceDirectory": "./contracts",
"outputDirectory": "./contracts_build"
}