yosoyubik
520225056a
naive: send signature and raw tx for every tx in the roll
...
this assumes that the naive contract has a "fallback" function:
https://docs.soliditylang.org/en/v0.5.3/contracts.html#fallback-function
2021-05-29 14:57:57 +02:00
yosoyubik
98bef023cf
naive: send updates to aggregator
2021-05-29 14:53:57 +02:00
yosoyubik
4cbf3d497b
naive: update tx state in finding txs
2021-05-29 14:46:19 +02:00
yosoyubik
e834aface1
naive: subscribe to azimuth agent
2021-05-29 14:44:58 +02:00
yosoyubik
9abd6c3e72
naive: use gen-tx-octs from naive-transactions library
2021-05-29 14:44:16 +02:00
yosoyubik
a3ed3182bc
naive: use contract/chain from azimuth library
2021-05-29 14:43:13 +02:00
yosoyubik
8b51b526d3
naive: add get-next-nonce thread
2021-05-29 14:40:13 +02:00
yosoyubik
47813a189a
naive: hook up subscription to azimuth for %tx diffs
2021-05-23 15:49:55 +02:00
yosoyubik
001d58e539
naive: add parse raw tx in aggregator submit action
2021-05-23 14:59:29 +02:00
yosoyubik
766e2ab610
naive: capture rpc errors when sending l2 batches
2021-05-22 08:10:30 +02:00
yosoyubik
3cee0ff3b8
naive: import /lib/naive-transactions in aggregator
2021-05-21 15:21:09 +02:00
yosoyubik
937cc2ce44
naive: add aggregator sur
2021-05-21 15:07:08 +02:00
yosoyubik
9caa686173
naive: cast to _pending when updating pending-state
2021-05-21 14:29:40 +02:00
yosoyubik
fbb40b688e
naive: add %failed for droppped l2 txs
2021-05-21 14:12:05 +02:00
yosoyubik
30bd648d7f
json-rpc: move error response core to lib
2021-05-21 13:39:06 +02:00
yosoyubik
8532ef4bb0
naive: remove [] around function calls in scry paths
2021-05-21 13:00:45 +02:00
yosoyubik
6cdc3a1cae
Merge branch 'naive/aggregator' into yu/azimuth-rpc
2021-05-21 12:34:33 +02:00
yosoyubik
ce35d07adb
naive: remove redundant brackets
2021-05-21 12:34:29 +02:00
yosoyubik
f6adf083ad
naive: use /v1/azimuth in rcp-api
2021-05-21 12:28:54 +02:00
yosoyubik
5862aa07ce
naive: wip aggregator send thread
2021-05-21 12:16:57 +02:00
yosoyubik
9e7cb91398
Merge branch 'yu/azimuth-rpc' into naive/aggregator
2021-05-17 17:50:45 +02:00
yosoyubik
152cf894ff
naive: hook rpc-api with aggregator
2021-05-17 17:49:41 +02:00
yosoyubik
7c57a35ccc
naive: wip aggregator compiles
...
got it to compile and tested poke and scry from /app/azimuth-rpc.hoon
2021-05-17 17:48:49 +02:00
yosoyubik
154baceb8b
Merge branch 'yu/azimuth-rpc' into naive/aggregator
2021-05-14 09:46:36 +02:00
yosoyubik
8ebb5e2d6c
naive: add pending and tx status RPCs
2021-05-14 07:25:09 +02:00
yosoyubik
7ede24c3cc
naive: first pass at tx history RPC
2021-05-14 07:25:04 +02:00
yosoyubik
ae8d98c467
naive: add jsonrpc parsing for sending pending rolls
2021-05-14 07:24:59 +02:00
yosoyubik
0380d18735
naive: add rpc response error codes
2021-05-14 07:24:43 +02:00
yosoyubik
36cdb9493d
naive: add jsonrpc parsing for naive txs
2021-05-14 07:24:35 +02:00
yosoyubik
fe8c36dd3f
naive: use agentio for scry point
2021-05-14 07:24:27 +02:00
yosoyubik
843fe4ce38
json-rpc: add validation for json-rpc request
2021-05-14 07:24:27 +02:00
yosoyubik
d8a24d7d6b
naive: add json library for rpc responses
2021-05-14 07:24:16 +02:00
yosoyubik
0c704bb145
json-rpc: add response-to-json
2021-05-14 07:24:16 +02:00
yosoyubik
afd3c9b85e
naive: add azimuth rpc api
...
Currently supports one endpoint 'get-point' that returns Azimuth Point
data (see +point in %/lib/naive.hoon), for a given ship.
To run it:
curl -X POST --data '{
"jsonrpc": "2.0",
"method": "get-point",
"params": {"ship": "~sampel-palnet"},
"id": 1234
}' http://localhost:8080/v1/azimuth
2021-05-14 07:23:59 +02:00
yosoyubik
31cc219997
naive: support "get point" scry
2021-05-14 07:23:58 +02:00
fang
9b62454bca
naive: wip aggregator
...
Includes logic for the core flow, but isn't fully hooked up to outside
sources/events yet. Probably doesn't compile. Plenty of TODOs remaining.
2021-05-13 17:21:35 +02: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
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
Liam Fitzgerald
b46f2e24e6
glob: update to 0v3.g6u13.haedt.jt4hd.61ek5.6t30q
2021-04-22 18:00:19 +10: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
Liam Fitzgerald
268677e744
metadata-store: prevent infinite loop
2021-04-20 16:15:04 +10:00
Liam Fitzgerald
e63beeb271
glob: update to 0v4.m6t09.ego4v.atjn3.mn5p4.mchad
2021-04-20 15:06:10 +10:00
Liam Fitzgerald
e0a12bd7dd
Merge remote-tracking branch 'origin/la/no-data-contact'
2021-04-20 14:53:18 +10:00
Logan Allen
fa59f87dc5
contact-store: disallow data: urls from being added
2021-04-19 14:38:33 -05:00