fang
1678d45876
naive: emit effects for processed txs
...
As a transaction receipt of sort, to inform of transaction success or
failure.
2021-05-06 00:16:49 +02:00
Philip Monk
27949c5d8a
naive: fix +tx
2021-04-28 22:04:11 -07:00
Philip Monk
75eeef544e
naive: store crypto suite number in state
...
We now store the raw crypto suite number, authentication key, and
encryption key. App/azimuth converts this to a `pass` for jael's
benefit.
2021-04-28 20:51:43 -07:00
Philip Monk
b1091d0e98
Merge remote-tracking branch 'origin/master' into philip/naive
2021-04-28 20:30:07 -07:00
Philip Monk
3869e01556
naive: infer ships from 'from'
...
For all except spawn, we can infer one of the ship arguments to be the
"from" ship. This reduces repetition in the batches, which shortens txs
by 4 bytes each (except spawn), and eliminates the need to assert the
same ship is used in both places.
2021-04-28 19:55:57 -07:00
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
Liam Fitzgerald
fbd85abf4e
Merge remote-tracking branch 'origin/master' into lf/push-hook-unver
2021-04-03 12:54:35 +11:00
Liam Fitzgerald
b6a758b1f9
pull-hook: noop on unsupported, unversioned facts
...
Pull-hook side of the previous change to push-hook
(479fbfd798
). Noop on unsupported
unversioned marks, waiting for the publisher to upgrade and kick. Same
tradeoffs as previous change apply.
2021-04-03 10:45:22 +10:00
Philip Monk
c162758e92
naive: add all effects
2021-04-02 16:06:24 -07:00
Logan Allen
21b1119c74
metadata lib: parse right
2021-04-02 20:35:25 +00:00
Logan Allen
6fbbe2ceb7
metadata-store lib: make config encode/decode invertible
2021-04-02 19:18:59 +00:00
Liam Fitzgerald
f27fa5b0f3
metadata: fix updating graph metadata
2021-04-02 23:23:31 +10:00
Liam Fitzgerald
01960286d0
push-hook: do not pass facts to unsupported, unversioned subs
2021-04-02 22:14:15 +10:00
Liam Fitzgerald
479fbfd798
push-hook: noop on unversioned, unsupported watches
...
Mainnet is currently experiencing undue load due to a watch-kick loop.
If the watch is unsupported, it will be kicked due to a mark mismatch,
which will be interpreted by the unversioned hooks as a network pressure
kick, prompting a resub and continuing the loop. Instead, we now no-op
on unversioned, unsupported watches, waiting for the subscriber to
rewatch after it processes the versioning OTA. This will silently break
groups for the subscriber until the reach the latest OTA, but is
preferable to nacking, and kicking them permanently
2021-04-02 20:38:22 +10:00
Liam Fitzgerald
eb131e64a8
metadata: prevent crash
2021-04-02 15:24:26 +10:00
Liam Fitzgerald
4d659be7cf
metadata: fix JSON conversions
2021-04-02 14:35:41 +10:00
Philip Monk
cc92433622
naive: detach from arvo
2021-04-01 19:31:50 -07:00
Liam Fitzgerald
615be57b7b
Post: refactor permission variations
2021-04-02 11:48:09 +10:00
Logan Allen
5953c9a58f
graph-view: add %vip field to %create-group-feed
2021-04-01 16:08:30 -05: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
Liam Fitzgerald
95bf313ff9
group-view: add %started update
2021-03-29 14:27:28 -04:00
Matilde Park
b7e52edd58
Merge branch 'pre-release/next-userspace' into release/next-userspace
2021-03-26 14:43:28 -04:00
Liam Fitzgerald
996174f85f
push-hook: add version scries
2021-03-26 16:58:02 +10:00
Liam Fitzgerald
9323f19108
graph-store: fix JSON
2021-03-25 14:45:16 +10:00
Liam Fitzgerald
248255c697
graph-store: fix crash in JSON
2021-03-25 14:10:28 +10:00
Liam Fitzgerald
7b378f435d
pull-hook: delay scry in on-load
2021-03-25 11:32:32 +10:00
Liam Fitzgerald
3b3d86aa6c
pull-hook: delay scry in on-load
2021-03-25 11:28:20 +10:00
Matilde Park
7fd4928d96
Merge branch 'release/next-js' into release/next-userspace
2021-03-24 19:10:27 -04:00
Liam Fitzgerald
ce1520ab1a
pull-hook: fix crash
2021-03-25 09:01:22 +10:00
Logan Allen
58bf89d834
Merge branch 'release/next-userspace' into la/group-feed
2021-03-24 14:51:49 -05:00
Liam Fitzgerald
dd44377624
interface: update transclusion for reference content
2021-03-24 13:11:48 +10:00
Liam Fitzgerald
c186bad1c1
graph-store: +on-load
2021-03-24 13:09:58 +10:00
Liam Fitzgerald
b1e86b42ba
interface: fix private permalinks
2021-03-24 13:09:55 +10:00
Liam Fitzgerald
54b3982b42
graph-store: upgrade reference content
...
This commit changes the type of update:graph-store and as such, a new
mark has been created. graph-store now consumes and produces
%graph-update-1. This new mark type is backwards incompatible with the
previous mark.
2021-03-24 13:06:26 +10:00
Logan Allen
9de66bc5af
Merge branch 'release/next-userspace' into la/group-feed
2021-03-23 21:13:12 -05:00
Liam Fitzgerald
4f0d84f4ee
Merge branch 'origin/pre-release/next-userspace' into release/next-userspace
2021-03-23 10:48:11 +10:00
Logan Allen
2e45f4fd99
Merge branch 'release/next-userspace' into la/group-feed
2021-03-22 12:36:34 -05:00
Liam Fitzgerald
ceafee33ab
hooks: address L review
2021-03-22 09:54:59 +10:00
Liam Fitzgerald
e2d10367af
hark-store: give set instead of count in initial
...
When we receive a notification, it might not affect our count because
it’ll get merged on the server side, but we unconditionally increment
our count on the client if the notification hasn’t been loaded yet.
Addresses this by storing a set of time, index so we can compute whether
or not the notification is merged or unloaded and change the count
accordingly.
Fixes urbit/landscape#276
2021-03-19 11:28:30 +10:00
Liam Fitzgerald
21bc8130ed
hooks: fix unversioned path destructure
2021-03-19 10:24:35 +10:00
Liam Fitzgerald
938ba80e9e
hooks: rewatch unversioned on nack
2021-03-19 10:12:50 +10:00
Liam Fitzgerald
ee12180a5d
hooks: allow unversioned subscriptions for migrate
2021-03-19 10:12:50 +10:00
Liam Fitzgerald
23e772ece5
hooks: fix remaining bugs
2021-03-19 10:12:49 +10:00
Liam Fitzgerald
0878104538
versioning: address review, add tests
2021-03-19 10:12:49 +10:00
Liam Fitzgerald
c99b452fff
version: add mark
2021-03-19 10:05:09 +10:00
Liam Fitzgerald
1832ce1d60
pull-hook: resume sub-ahead
2021-03-19 10:05:09 +10:00
Liam Fitzgerald
46eea8f3d4
pull-hook: resume pub-ahead
2021-03-19 10:05:08 +10:00
Liam Fitzgerald
35bbb358f2
push-hook: version proxied pokes
2021-03-19 10:05:08 +10:00
Liam Fitzgerald
153d0ff347
hooks: fix remaining bugs
2021-03-19 10:05:07 +10:00
Liam Fitzgerald
200944e91a
push-hook: proper versioning
2021-03-19 10:05:06 +10:00
Liam Fitzgerald
e5d75cac25
pull-hook: version mismatch suspend
2021-03-19 10:05:06 +10:00
Liam Fitzgerald
72fe65acd9
hooks: add versioning support
2021-03-19 10:05:02 +10: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
L
bcc43efdb0
Merge pull request #4584 from urbit/la/host-messages-transformed
...
push-hook: transform all messages, even the host's
2021-03-17 13:02:58 -05:00
L
fe7fdbcff2
Merge pull request #4596 from urbit/la/signatures-work
...
graph-store signatures: turn them on and correctly validate them
2021-03-17 13:02:43 -05: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
Logan Allen
6e9146bd58
thread: change name from disable-group-feed to dismiss-group-feed
2021-03-16 13:07:36 -05:00
Logan Allen
5a29e0bbcb
graph-view: add json conversion and -graph-dismiss-group-feed thread
2021-03-16 13:01:17 -05: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
Logan Allen
c874849203
metadata + post validator + -graph-create-group-feed: end to end create group feed
2021-03-15 17:28:45 -05:00
Logan Allen
3600866a5d
push-hook: cache transform and fail if transform fails
2021-03-15 11:59:57 -05:00
Logan Allen
2c1ae5646b
push-hook: refactored to transform-proxy-update within forward-update when appropriate. changed a manual |- into +murn
2021-03-12 18:08:34 -06:00
Logan Allen
caffd0fca8
signatures: properly use life instead of signed data in scry for deed
2021-03-12 10:52:46 -06:00
matildepark
ff21e29594
Merge pull request #4577 from tinnus-napbus/strandio-fix-await-thread
...
strandio: fix await-thread and thread-result
2021-03-11 14:02:10 -05:00
tinnus-napbus
210a63e238
strandio: fix await-thread and thread-result
...
thread-result generated the tid twice and didn't take the kick caused by
the child thread closing. Additionally, await-thread and thread-result
expect a %thread-fail to produce [term (list tang)] rather than the
actual [term tang].
This commit adds a take-kick, removes the duplicate tid line, and fixes the
expected thread-fail type.
2021-03-11 00:25:07 +13:00
Logan Allen
59da9e1f49
Merge branch 'release/next-userspace' into la/group-feed
2021-03-09 13:22:25 -06:00
Logan Allen
63cfbd2ca4
Merge branch 'master' into release/next-userspace
2021-03-09 13:20:22 -06:00
Logan Allen
7da7da8e1e
metadata-store: based on discussion with @ixv, made differences between graphs and groups in metadatum more clear
2021-03-09 11:11:28 -06:00
Logan Allen
b2759b9f36
Merge branch 'release/next-js' into la/release-2021-03-04
2021-03-08 14:11:54 -06:00
Logan Allen
9430c8c5ab
metadata-store: modify module from @t to (each @t (unit (unit md-resource))) so as to allow for setting an optional group feed associated with a group
2021-03-05 14:28:46 -06:00
Matilde Park
5f24254793
Merge branch 'release/next-js' into release/next-userspace
2021-03-05 03:22:41 -05:00
Philip Monk
a0146f4a44
clay: add %e, %f requests
...
For static naves, casts respectively
2021-03-04 18:28:16 -08:00
matildepark
3ac19c34d8
Merge pull request #4537 from urbit/lf/invite-fixes
...
invites: don't pin to top
2021-03-04 14:23:20 -05:00
Liam Fitzgerald
b8d1dbd8c6
group-view: add hidden field
2021-03-04 12:54:37 +10:00
Philip Monk
137f1cdff3
Merge remote-tracking branch 'origin/ted/static-clay-3' into release/next-sys
2021-03-03 18:42:44 -08:00
Philip Monk
0e427c3c7e
Merge commit '5a6a88c' into release/next-sys
2021-03-03 18:18:12 -08:00
Philip Monk
6e3d1680a7
Merge remote-tracking branch 'origin/master' into release/next-sys
2021-03-03 17:54:57 -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