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
@@ -20,3 +21,152 @@ Delivery initial lacked proof of possession for authenticated address registerin
20
21
Still had some reliability issues with the relayer connection, but delayed this to milestone 2, which grantee has already opened PR for.
21
22
22
23
Likewise, I reckon the [relay's peer id](https://github.com/Fiono11/decentralized_threshold_signing_service/blob/8f735e2365364c0d2fd253c3127f755dc1d09ac1/index.js#L591) should still be authenticated with a proof of possession, but likewise delaying this to milestone 2 - grantee already has created the plumbing for this, so it's a simple addition.
24
+
25
+
## Testing
26
+
27
+
All tests passing:
28
+
29
+
<details>
30
+
<summary>Output</summary>
31
+
32
+
```js
33
+
@keeganquigley ➜ /workspaces/decentralized_threshold_signing_service (main) $ npm run test:docker
34
+
35
+
> relay-server-and-client@1.0.0 test:docker
36
+
> docker compose run --no-deps test
37
+
38
+
[+] Creating 1/1
39
+
✔ Network decentralized_threshold_signing_service_libp2p-network Created 0.1s
40
+
[+] Building 186.9s (17/17) FINISHED
41
+
=> [internal] load local bake definitions 0.0s
42
+
=>=> reading from stdin 635B0.0s
43
+
=> [internal] load build definition from Dockerfile 0.0s
node_modules/@polkadot/x-global/index.js (9:23): A comment
89
+
90
+
"/*#__PURE__*/"
91
+
92
+
in "node_modules/@polkadot/x-global/index.js" contains an annotation that Rollup cannot interpret due to the position of the comment. The comment will be removed to avoid issues.
(!) Some chunks are larger than 500 kB after minification. Consider:
98
+
- Using dynamic import() to code-split the application
99
+
- Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks
100
+
- Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.
101
+
[WebServer] node_modules/@polkadot/x-global/index.js (9:23): A comment
102
+
[WebServer]
103
+
[WebServer] "/*#__PURE__*/"
104
+
[WebServer]
105
+
[WebServer] in "node_modules/@polkadot/x-global/index.js" contains an annotation that Rollup cannot interpret due to the position of the comment. The comment will be removed to avoid issues.
106
+
[WebServer]
107
+
[WebServer] (!) Some chunks are larger than 500 kB after minification. Consider:
108
+
[WebServer] - Using dynamic import() to code-split the application
109
+
[WebServer] - Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks
110
+
[WebServer] - Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.
111
+
112
+
113
+
Running 3 tests using 1 worker
114
+
…ser example: › should connect to another browser peer and send a message via SS58 addresses with permission
115
+
Test relay listening on: /ip4/127.0.0.1/tcp/8080/ws/p2p/12D3KooWMUBCtwNu7NGmMidjaiQEBTDVnfYYK3ZWfgqqdpS3XoDN
Vite server on port 5174: Port 5174 is in use, trying another one...
137
+
138
+
Vite server on port 5174:
139
+
VITE v6.3.5 ready in 158 ms
140
+
141
+
142
+
Client A URL: http://localhost:5173
143
+
Client B URL: http://localhost:5174
144
+
Vite server on port 5174: ➜ Local: http://localhost:5175/
145
+
➜ Network: http://172.18.0.2:5175/
146
+
147
+
Generated challenge for 5CXkZyy4S5b3w16wvKA2hUwzp5q2y7UtRPkXnW97QGvDN8Jw: 2c839e27c707f1134c8cea7ec1d4913824167f6fd78304e05901babfb1984070
148
+
Stored with proof of possession: 5CXkZyy4S5b3w16wvKA2hUwzp5q2y7UtRPkXnW97QGvDN8Jw -> /ip4/127.0.0.1/tcp/8080/ws/p2p/12D3KooWA1bysjrTACSWqf6q172inxvwKHUxAnBtVgaVDKMxpZtx/p2p-circuit/webrtc/p2p/12D3KooWQ86skArFuw6PPPGi59huzEps1AMRwLfE8EHaJWceXWL6 (1 total)
149
+
Generated challenge for 5Gma8SNsn6rkQf9reAWFQ9WKq8bwwHtSzwMYtLTdhYsGPKiy: 7695900331bca0abf13c42940a18f900d8fc539ab05f08a6fe111b6329d03011
150
+
Stored with proof of possession: 5Gma8SNsn6rkQf9reAWFQ9WKq8bwwHtSzwMYtLTdhYsGPKiy -> /ip4/127.0.0.1/tcp/8080/ws/p2p/12D3KooWA1bysjrTACSWqf6q172inxvwKHUxAnBtVgaVDKMxpZtx/p2p-circuit/webrtc/p2p/12D3KooWSPwqMgR27J33zBYvwUuZukrnUMWdzHYuAGx7J2yCp6Ws (2 total)
151
+
Permission request bcbd9329-e9e4-4772-bc3f-e59c091daafe: 5Gma8SNsn6rkQf9reAWFQ9WKq8bwwHtSzwMYtLTdhYsGPKiy wants to connect to 5CXkZyy4S5b3w16wvKA2hUwzp5q2y7UtRPkXnW97QGvDN8Jw
Query: 5CXkZyy4S5b3w16wvKA2hUwzp5q2y7UtRPkXnW97QGvDN8Jw -> found
154
+
…› browser to browser example: › should perform mutual proof of possession during connection with permission
155
+
Generated challenge for 5CXkZyy4S5b3w16wvKA2hUwzp5q2y7UtRPkXnW97QGvDN8Jw: 29c2dcd05a27bb13c4c9a87ad4980f2513ba082c85a6352e17de647612428a5e
156
+
Stored with proof of possession: 5CXkZyy4S5b3w16wvKA2hUwzp5q2y7UtRPkXnW97QGvDN8Jw -> /ip4/127.0.0.1/tcp/8080/ws/p2p/12D3KooWA1bysjrTACSWqf6q172inxvwKHUxAnBtVgaVDKMxpZtx/p2p-circuit/webrtc/p2p/12D3KooWP1wUS7oxLqcBbiRCAaJEHxeJ8fPwVHoDjEfpbrDM7SBc (2 total)
157
+
Generated challenge for 5Gma8SNsn6rkQf9reAWFQ9WKq8bwwHtSzwMYtLTdhYsGPKiy: 39f7e96d369989225dbaaf5490d55aa66654b9009a93e5f4ed78057f8ecd6093
158
+
Stored with proof of possession: 5Gma8SNsn6rkQf9reAWFQ9WKq8bwwHtSzwMYtLTdhYsGPKiy -> /ip4/127.0.0.1/tcp/8080/ws/p2p/12D3KooWA1bysjrTACSWqf6q172inxvwKHUxAnBtVgaVDKMxpZtx/p2p-circuit/webrtc/p2p/12D3KooWKDqjmY7beZDQghojmZJUzVVKN9xva9o4fhHjsJi99CD9 (2 total)
159
+
Permission request d709e81a-cc8d-4f58-aba2-b0b3f0a6e9d9: 5Gma8SNsn6rkQf9reAWFQ9WKq8bwwHtSzwMYtLTdhYsGPKiy wants to connect to 5CXkZyy4S5b3w16wvKA2hUwzp5q2y7UtRPkXnW97QGvDN8Jw
Query: 5CXkZyy4S5b3w16wvKA2hUwzp5q2y7UtRPkXnW97QGvDN8Jw -> found
162
+
…m] › test/index.spec.js:243:3 › browser to browser example: › should handle permission rejection gracefully
163
+
Generated challenge for 5CXkZyy4S5b3w16wvKA2hUwzp5q2y7UtRPkXnW97QGvDN8Jw: 62a77fc1e9920590d6545c00a9d1a309b6ba202bbcc0fbba1ed741ada59cb285
164
+
Stored with proof of possession: 5CXkZyy4S5b3w16wvKA2hUwzp5q2y7UtRPkXnW97QGvDN8Jw -> /ip4/127.0.0.1/tcp/8080/ws/p2p/12D3KooWA1bysjrTACSWqf6q172inxvwKHUxAnBtVgaVDKMxpZtx/p2p-circuit/webrtc/p2p/12D3KooWCffbD2o1vBrDUrMZueZS5GW5re95FMqQ8A4KEyVKoKxb (2 total)
165
+
Generated challenge for 5Gma8SNsn6rkQf9reAWFQ9WKq8bwwHtSzwMYtLTdhYsGPKiy: 9635bf85f20863b8e3446373bdecb33f0f87ff99c34e8c14b93d45d48dd7b624
166
+
Stored with proof of possession: 5Gma8SNsn6rkQf9reAWFQ9WKq8bwwHtSzwMYtLTdhYsGPKiy -> /ip4/127.0.0.1/tcp/8080/ws/p2p/12D3KooWA1bysjrTACSWqf6q172inxvwKHUxAnBtVgaVDKMxpZtx/p2p-circuit/webrtc/p2p/12D3KooWB93KmbTpyYTsE5CSaryyXLoQrpjEXF5e6d9NKnERXdxM (2 total)
167
+
Permission request 7349ce34-a317-4e4b-a38d-be20adb09fa1: 5Gma8SNsn6rkQf9reAWFQ9WKq8bwwHtSzwMYtLTdhYsGPKiy wants to connect to 5CXkZyy4S5b3w16wvKA2hUwzp5q2y7UtRPkXnW97QGvDN8Jw
0 commit comments