You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: store/precomputed_key/wvm/README.md
+90-12Lines changed: 90 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -26,13 +26,72 @@ See env file for holesky network
26
26
# WVM_PRIV_KEY=
27
27
```
28
28
29
-
## About WeaveVM-EigenDA Side Server Proxy
30
-
WeaveVM-EigenDA Sidecar Proxy is a fork of EigenDA's sidecar proxy modified to use [WeaveVM](https://wvm.dev) as a permanent archive layer for EigenDA blobs dispersed from this customized proxy server.
29
+
30
+
# Examples and how to
31
+
32
+
## How to boot EigenDA proxy with wvm as a secondary backend
you should also set WVM_PRIV_KEY env variable with the private key of your WVM account
50
+
51
+
### web3signer
52
+
53
+
#### WARNING
54
+
Using a remote signer comes with risks, please read the following two warnings before proceeding:
55
+
56
+
Remote signing is complex and risky
57
+
Remote signing is generally only desirable for enterprise users or users with unique security requirements.
58
+
59
+
Web3Signer is not maintained by WeaveVM team.
60
+
The Web3Signer tool is maintained by Consensys, the same team that maintains Teku. The WeavVM team does not maintain Web3Signer or make any guarantees about its safety or effectiveness.
61
+
62
+
#### USAGE
63
+
64
+
to see the most simple test deploy of local web3signer:
65
+
https://github.com/allnil/web3signer_test_deploy
66
+
67
+
also consult docs: https://docs.web3signer.consensys.io/
68
+
69
+
70
+
Command to run eigendaproxy + wvm as a secondary storage & web3signer:
On each `PUT` request it stores the encoded eigenDA blob on WeaveVM as transaction type 2 calldata. WeaveVM chain(WVM) will also store it in Arweave protocol.
34
93
35
-
The stage of this integration is as PoC and an experimental feature. In this first v0 iteration the proxy internally stores mapping of eigenda blob as `batch_id:blob_index -> wvm_tx_hash`
94
+
The stage of this integration is as PoC and an experimental feature. In this first v0 iteration the proxy internally stores mapping of eigenda blob as `key-> wvm_tx_hash`
36
95
37
96
You need to use your WVM account wchich holds tWVM test token.
38
97
You may propagate private key to the EigenDA proxy via WVM_PRIV_KEY env variable or use web3signer.
@@ -42,23 +101,41 @@ You may see transactions from your address in weave vm explorer: https://explore
42
101
Block archive proof is a hash of associated arweave transaction.
43
102
You may use WeaveVM's `wvm://` data retrieval gateway to retrieve the data associated with a WeaveVM transaction (calldata) natively from WeaveVM's self-DA layer and Arweave's permanent WeaveVM-ExEx data protocol. [Check out the `wvm-data-retriever` codebase here](https://github.com/weavevM/wvm-data-retriever)
44
103
45
-
## WeaveVM Proxy Methods
46
-
47
-
### 1- Get WeaveVM tx hash of a dispersed blob
104
+
### Commands and example of usage:
48
105
106
+
#### 1) Put
49
107
```bash
50
-
curl -X GET "https://eigenda-proxy-1047776281941.us-central1.run.app/get/0x$COMMITMENT?commitment_mode=simple" \
51
-
-H "Content-Type: application/octet-stream"
108
+
curl -X POST "http://127.0.0.1:3100/put?commitment_mode=simple" \
109
+
--data-binary "some data that will successfully be written to EigenDA" \
110
+
-H "Content-Type: application/octet-stream" \
111
+
--output response.bin
52
112
```
53
113
54
-
###2- Get a dispersed blob from WeaveVM
114
+
#### 2) Get
55
115
56
116
```bash
57
-
curl -X GET "https://eigenda-proxy-1047776281941.us-central1.run.app/wvm/get/0x$COMMITMENT?commitment_mode=simple" \
0 commit comments