Commit Graph

16 Commits

Author SHA1 Message Date
Hendrik Hofstadt 6e5a3fa118 Update ETH smart contract for new signature schema 2020-08-15 00:09:48 +02:00
Hendrik Hofstadt 2a096790d3 new VAA format in Golang 2020-08-14 22:45:45 +02:00
Hendrik Hofstadt 0e69aa4ddc remove requirement for half_q on pub key x
Schnorr signatures don't have the ecdsa malleability vulnerability, also we protect against malleable signatures by tracking consumed VAAs using their body hash.
The check was implemented because the author assumed that ecrecover in the EVM does not accept s < HALF_Q values for malleability protection. There were 2 misconceptions:
1. pubkey_x is passed in as r and not s, 2. the check is not enforced in the precompiled evm instruction.
2020-08-10 21:08:57 +02:00
Hendrik Hofstadt 9a4e1f396d Track confirmations in watcher 2020-08-06 19:14:31 +02:00
Hendrik Hofstadt b6c85217b6 Add ETH tracking 2020-08-06 15:43:45 +02:00
Hendrik Hofstadt b3832ab8c7 Fully implement U256; add source_address to transfer VAA 2020-08-05 13:12:54 +02:00
Hendrik Hofstadt dece1a6a90 Fix protocol compatibility and increase VAA test coverage 2020-08-05 12:28:44 +02:00
Hendrik Hofstadt a1ba223361 Remove duplicate CL libraries, add signing logic to VAA 2020-08-05 10:48:43 +02:00
Hendrik Hofstadt 8f333ba0fd Fix chainlink key generation/validation 2020-08-04 23:52:39 +02:00
Hendrik Hofstadt 7993a72dea Add VAA serialization logic 2020-08-04 23:43:16 +02:00
Leo 540e39296a bridge: README stub 2020-08-04 19:52:41 +02:00
Leo 2a81b445b1 Import Chainlink's Distributed Schnorr implementation
Unmodified except for imports and addition of license files.
2020-08-04 19:52:41 +02:00
Leo a7d17cf5aa Add persistent keys and bootstrap peer
This connects all nodes to a full mesh.
2020-08-04 12:15:51 +02:00
Leo b8c2efdf86 Simple local devnet for development 2020-08-04 12:15:51 +02:00
Leo dd8b2ade81 libp2p stub that can find peers on a private network
Test Plan:

    go run github.com/certusone/wormhole/bridge/cmd/guardiand -network wormhole-dev -port 9000 &
    go run github.com/certusone/wormhole/bridge/cmd/guardiand -network wormhole-dev -bootstrap /ip4/127.0.0.1/udp/9000/quic/p2p/<id> -port 9001
2020-08-04 12:15:51 +02:00
Leo 39eb919aaa Import supervision tree from internal SignOS repo
Once SignOS is public, we can un-vendor this.
2020-08-04 12:15:51 +02:00