Commit Graph

2183 Commits

Author SHA1 Message Date
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
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
f9e93fa660
naive: add snapshot via git lfs 2021-04-20 21:58:52 -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
0fbbd3aa28
naive: add app/naive to download from ethereum 2021-04-08 00:36:34 -07:00
janeway
0a8d82d822
glob: update to 0vtbs05.a6mkl.r5ark.jfj84.3fa4h 2021-03-12 14:35:19 +10:00
janeway
d17779972f
glob: update to 0v3.o81b7.9dkd7.6ubrn.ebhmi.dtree 2021-03-10 12:12:21 +10:00
janeway
640190610c glob: update to 0v7.sjbvb.4gg0l.1qmbv.fmobl.d2tsq 2021-03-09 17:18:58 -05:00
janeway
4e9873359d glob: update to 0v3.i5rmt.7fid4.sr9bh.0pcpi.cmc0v 2021-03-09 18:07:06 +00:00
janeway
1b1871303e glob: update to 0v7.9orhd.ugk69.vmf2f.hcj15.tcf9c 2021-03-08 15:39:01 -05:00
Logan Allen
b2759b9f36 Merge branch 'release/next-js' into la/release-2021-03-04 2021-03-08 14:11:54 -06:00
Liam Fitzgerald
6cecfaf430
Merge remote-tracking branch 'origin/master' into release/next-js 2021-03-05 15:24:14 +10:00
janeway
9c9446d77f
glob: update to 0v8buag.lcoib.dupqj.iprqk.spvqf 2021-03-04 19:45:20 -08:00
Liam Fitzgerald
9e8c4e1471
glob: update 2021-03-05 10:08:03 +10:00
janeway
aa07cc4cba
glob: update to 0vah4o5.ark7i.iqunl.or5d7.3rm2e 2021-03-04 14:47:10 -08:00
janeway
7e6672d356
glob: update to 0v1.5ahkf.kj160.veq26.sbnii.p6h5t 2021-03-04 14:28:54 -08:00
janeway
d968d66e81 glob: update to 0v5.04p4c.551r4.4c6os.t537a.3nbjs 2021-03-04 14:56:14 -05:00
Matilde Park
f1356ed96d Merge branch 'release/next-js' into la/release-2021-03-04 2021-03-04 12:34:01 -05:00
matildepark
1dcdfed9c6
Merge pull request #4461 from urbit/lf/tutorial-revive
tutorial: reenable
2021-03-04 12:24:09 -05:00
L
3e9d5da7ea
Merge pull request #4521 from urbit/lf/hark-future
hark-store: remove visions of future
2021-03-04 11:22:34 -06:00
matildepark
8bf3c809a4
Merge pull request #4478 from urbit/la/transform-proxy
push-hook: replace +should-proxy-update with +transform-proxy-update
2021-03-04 12:04:16 -05:00
Philip Monk
faffc74e5d
Merge remote-tracking branch 'origin/m/dbug-cue' into release/next-sys 2021-03-03 18:19:50 -08:00
matildepark
c16815b003
Merge pull request #4347 from urbit/lf/moar-lsp
language-server: fixes & improvements
2021-03-03 14:51:40 -05:00
matildepark
5e86058ffa
Merge pull request #4509 from urbit/lf/graph-sibling-fixes
hark-graph-hook: upgrade notification-kind to allow for sibling autowatches
2021-03-03 14:50:58 -05:00
Logan Allen
9c178d7f34 Merge branch 'release/next-js' into la/transform-proxy 2021-03-03 12:56:39 -06:00
janeway
75a00b9c18
glob: update to 0v9flom.311gv.90jce.591n4.d09bf 2021-03-03 11:34:18 +10:00
Logan Allen
48ab4da76c graph-push-hook: build %transform-add-nodes mark to keep cache hot 2021-03-02 14:01:12 -06:00
Liam Fitzgerald
38968bde94
Merge remote-tracking branch 'origin/release/next-js' into lf/tutorial-revive 2021-03-02 13:11:43 +10:00
Liam Fitzgerald
43b2423db7
hark-store: remove visions of future 2021-03-02 12:43:51 +10:00
fang
c7d86015aa
dbug: assume new lane encoding 2021-02-27 01:41:16 +01:00
janeway
6bcbbf8f1a
glob: update to 0v5.ip41o.9jcdb.4jb1f.sd508.fdssj 2021-02-26 17:07:59 +10:00
Liam Fitzgerald
76733e1072
Merge branch 'lf/read-all-fix' 2021-02-26 16:56:58 +10:00
Liam Fitzgerald
04170206bd
hark-graph-hook: upgrade notification-kind to allow for sibling autowatches 2021-02-26 13:37:25 +10:00
Liam Fitzgerald
034fc30173
Merge remote-tracking branch 'origin/release/next-js' into lf/tutorial-revive 2021-02-26 11:26:17 +10:00
Liam Fitzgerald
86bc8b9444
hark-store: bunt cache before rebuilding
Previously, rebuilding the cache in any scenario other than on-load would add
missing notifications but not remove read or dismissed notifications

Fixes urbit/landscape#479
2021-02-26 09:58:48 +10:00
Logan Allen
0f7ff055df graph-store: only calculate hash when necessary, only check signatures if necessary 2021-02-25 13:06:26 -06:00
Logan Allen
ae8018d660 graph-push-hook: fixed bugs with validator conversions and with transform 2021-02-25 12:41:17 -06:00
Isaac Visintainer
c0849f2c0b settings: add array type 2021-02-24 17:28:26 -08:00
Logan Allen
19005f3ca3 graph: rewrite +tap-deep to function properly 2021-02-24 19:14:18 -06:00
Logan Allen
6228bc42a6 graph-push-hook: deny imposters even if we have %yes permission 2021-02-24 16:09:56 -06:00
Logan Allen
63dc2f4c36 graph-push-hook: prevent fuse-loop 2021-02-24 15:30:49 -06:00
Logan Allen
22d1348e57 graph-push-hook: implement transform-add-nodes mark and properly ingest %add-nodes event 2021-02-24 13:12:46 -06:00
Liam Fitzgerald
6b30a6c47d
glob: update to 0v3.10f5l.mmsef.76usq.9a3gk.0rmog 2021-02-24 14:25:45 +10:00
Liam Fitzgerald
491c1b4698
Merge branch 'lf/neg-notifications' 2021-02-24 14:07:45 +10:00
Logan Allen
face904377 graph-push-hook: first pass at modifying incoming %add-nodes updates using the %add-nodes-transform mark 2021-02-22 16:54:45 -06:00
Logan Allen
4753ba5506 push-hook: replace +should-proxy-update with +transform-proxy-update 2021-02-22 14:31:19 -06:00