Philip Monk
36a10eb083
naive: convert can -> cad
...
Avoid bugs where we miscount the length of assembled atoms.
2021-04-28 19:19:50 -07:00
Philip Monk
5d52171a47
naive: add domain separator
...
To prevent replay across chains, eg from ropsten to mainnet.
Additionally, this introduces a version number, so we won't have to
worry about future signature formats being accidentally compatible with
this one.
2021-04-28 18:13:00 -07:00
Philip Monk
6dda168f3c
naive: factor out keccak into verifier
...
The verifier now takes an octs so that we can properly hash it to the 32
bytes required by ecdsa.
This allows lib/naive to use its own stdlib again.
2021-04-28 15:38:28 -07:00
Philip Monk
f2c43edc99
naive: make bitlengths explicit
...
Also switches everything to ropsten by default, including ivory pill.
Batches work on ropsten now.
Also adds +tx as a hacky development tool to create text for metamask to
sign and then turn that into a batch. A useful reference for bridge and
aggregator work.
2021-04-27 22:58:19 -07:00
Philip Monk
781cdf3960
naive: alter signatures to match personal_sign
2021-04-27 17:26:34 -07:00
Philip Monk
1ed14c9908
naive: remove "wrap" functionality
...
Wraps are hard to get right, so we remove support for now.
2021-04-20 23:51:32 -07:00
Philip Monk
05dbd8cddd
naive: move signature verification inside loop
...
Before this change, signatures were verified according to the owners at
the beginning of batch, which is wrong. Now we do it per wrap, but this
is *also* wrong because they should actually be verified per tx, in case
the owner changes within a wrap.
Also introduces the roll/wrap terminology.
2021-04-20 23:08:32 -07:00
Philip Monk
1b5bc0f476
naive: snapshot improvements
2021-04-20 21:57:04 -07:00
Philip Monk
c915839e9d
naive: fetch l2 batches from chain
2021-04-15 01:02:58 -07:00
Philip Monk
3e56e17a22
naive: remove l2 set-voting-proxy
...
Since galaxies can't be on L2
2021-04-14 18:03:52 -07:00
Philip Monk
176df1fc2a
naive: add verbosity level
2021-04-14 17:49:30 -07:00
Philip Monk
46275fa251
naive: a few bugfixes
2021-04-14 16:58:27 -07:00
Philip Monk
0fbbd3aa28
naive: add app/naive to download from ethereum
2021-04-08 00:36:34 -07:00
Philip Monk
c162758e92
naive: add all effects
2021-04-02 16:06:24 -07:00
Philip Monk
cc92433622
naive: detach from arvo
2021-04-01 19:31:50 -07:00
Philip Monk
c7ce435a3e
naive: add nonces to transactions
2021-04-01 00:05:12 -07:00
Philip Monk
ce08324597
naive: add batch transaction type
2021-03-31 20:28:13 -07:00
Philip Monk
f277eaadb2
naive: remove unnecessary checks
2021-03-31 19:47:40 -07:00
Philip Monk
26226916a0
naive: make all errors explicit, remove +mule
2021-03-31 18:55:49 -07:00
Philip Monk
9149f45521
naive: catch all parser errors explicitly
2021-03-31 18:30:15 -07:00
Philip Monk
5a761caac6
naive: factor out stdlib dependencies
2021-03-31 18:17:37 -07:00
Philip Monk
063c51a8fc
naive: cleanup
2021-03-31 16:21:37 -07:00
Philip Monk
7ef8efa7b5
naive: cleanup
2021-03-18 13:32:32 -07:00
Philip Monk
0c79d73f68
naive: minimum l1/deposit/l2 tests
2021-03-17 18:09:24 -07:00
Philip Monk
c8f8d8b36d
naive: add first test
2021-03-17 17:27:30 -07:00
Philip Monk
47fd56824b
naive: compiles
2021-03-17 16:42:39 -07:00
Philip Monk
bd70254dca
naive: add parsing
...
The completes a first draft, though I haven't attempted to compile it.
2021-03-16 19:41:43 -07:00
Philip Monk
5f759392c3
naive: implement L2 txs except parsing
2021-03-16 18:25:27 -07:00
Philip Monk
5604afb88a
naive: initial commit
...
Sketches out L1 log handling, but does not yet implement L2 batches
2021-03-15 20:49:51 -07:00