WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 66ec434

Browse files
themighty1heeckhau
andauthored
chore: update config options + update to alpha.12 (#113)
* chore: update config options * Alpha.12 --------- Co-authored-by: Hendrik Eeckhaut <[email protected]>
1 parent f51ddbf commit 66ec434

File tree

16 files changed

+64
-50
lines changed

16 files changed

+64
-50
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
RELEASE_MODE: 'dry-run' # dry-run by default, will be set to 'publish' for release builds
1414
services:
1515
notary-server:
16-
image: ghcr.io/tlsnotary/tlsn/notary-server:v0.1.0-alpha.11
16+
image: ghcr.io/tlsnotary/tlsn/notary-server:v0.1.0-alpha.12
1717
ports:
1818
- 7047:7047
1919
steps:

.github/workflows/playwright.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99
services:
1010
notary-server:
11-
image: ghcr.io/tlsnotary/tlsn/notary-server:v0.1.0-alpha.11
11+
image: ghcr.io/tlsnotary/tlsn/notary-server:v0.1.0-alpha.12
1212
env:
1313
NOTARY_SERVER__TLS__ENABLED: false
1414
ports:

demo/interactive-demo/prover-rs/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ tracing-subscriber = { version ="0.3.18", features = ["env-filter"] }
2525
uuid = { version = "1.4.1", features = ["v4", "fast-rng"] }
2626
ws_stream_tungstenite = { version = "0.13", features = ["tokio_io"] }
2727

28-
tlsn-core = { git = "https://github.com/tlsnotary/tlsn.git", tag = "v0.1.0-alpha.11", package = "tlsn-core" }
29-
tlsn-prover = { git = "https://github.com/tlsnotary/tlsn.git", tag = "v0.1.0-alpha.11", package = "tlsn-prover" }
30-
tlsn-common = { git = "https://github.com/tlsnotary/tlsn.git", tag = "v0.1.0-alpha.11", package = "tlsn-common" }
28+
tlsn-core = { git = "https://github.com/tlsnotary/tlsn.git", tag = "v0.1.0-alpha.12", package = "tlsn-core" }
29+
tlsn-prover = { git = "https://github.com/tlsnotary/tlsn.git", tag = "v0.1.0-alpha.12", package = "tlsn-prover" }
30+
tlsn-common = { git = "https://github.com/tlsnotary/tlsn.git", tag = "v0.1.0-alpha.12", package = "tlsn-common" }
3131
spansy = {git = "https://github.com/tlsnotary/tlsn-utils", package = "spansy", branch = "dev"}
3232
rangeset = "0.2.0"

demo/interactive-demo/prover-rs/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const MAX_RECV_DATA: usize = 1 << 14;
2828

2929
const SECRET: &str = "TLSNotary's private key 🤡";
3030
/// Make sure the following url's domain is the same as SERVER_DOMAIN on the verifier side
31-
const SERVER_URL: &str = "https://raw.githubusercontent.com/tlsnotary/tlsn/refs/tags/v0.1.0-alpha.11/crates/server-fixture/server/src/data/1kb.json";
31+
const SERVER_URL: &str = "https://raw.githubusercontent.com/tlsnotary/tlsn/refs/tags/v0.1.0-alpha.12/crates/server-fixture/server/src/data/1kb.json";
3232

3333
#[tokio::main]
3434
async fn main() {

demo/interactive-demo/prover-ts/src/app.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { Prover as TProver } from 'tlsn-js';
66
import { type Method } from 'tlsn-wasm';
77
import './app.scss';
88
import { HTTPParser } from 'http-parser-js';
9-
import { Commit, mapStringToRange, subtractRanges } from 'tlsn-js';
9+
import { Reveal, mapStringToRange, subtractRanges } from 'tlsn-js';
1010

1111
const { init, Prover }: any = Comlink.wrap(
1212
new Worker(new URL('./worker.ts', import.meta.url)),
@@ -17,7 +17,7 @@ const root = createRoot(container!);
1717

1818
root.render(<App />);
1919

20-
const serverUrl = 'https://raw.githubusercontent.com/tlsnotary/tlsn/refs/tags/v0.1.0-alpha.11/crates/server-fixture/server/src/data/1kb.json';
20+
const serverUrl = 'https://raw.githubusercontent.com/tlsnotary/tlsn/refs/tags/v0.1.0-alpha.12/crates/server-fixture/server/src/data/1kb.json';
2121
// const websocketProxyUrl = `wss://notary.pse.dev/proxy`;
2222
const websocketProxyUrl = 'ws://localhost:55688';
2323
const verifierProxyUrl = 'ws://localhost:9816/verify';
@@ -95,7 +95,7 @@ function App(): ReactElement {
9595
console.log("test", body.information.address.street);
9696

9797
console.time('reveal');
98-
const reveal: Commit = {
98+
const reveal: Reveal = {
9999
sent: subtractRanges(
100100
{ start: 0, end: sent.length },
101101
mapStringToRange(
@@ -121,6 +121,7 @@ function App(): ReactElement {
121121
Buffer.from(recv).toString('utf-8'),
122122
),
123123
],
124+
server_identity: true,
124125
};
125126
console.log('Start reveal:', reveal);
126127
await prover.reveal(reveal);

demo/interactive-demo/verifier-rs/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ tracing = "0.1.40"
3232
tracing-subscriber = { version ="0.3.18", features = ["env-filter"] }
3333
ws_stream_tungstenite = { version = "0.13", features = ["tokio_io"] }
3434

35-
tlsn-core = { git = "https://github.com/tlsnotary/tlsn.git", tag = "v0.1.0-alpha.11", package = "tlsn-core" }
36-
tlsn-verifier = { git = "https://github.com/tlsnotary/tlsn.git", tag = "v0.1.0-alpha.11", package = "tlsn-verifier" }
37-
tlsn-common = { git = "https://github.com/tlsnotary/tlsn.git", tag = "v0.1.0-alpha.11", package = "tlsn-common" }
35+
tlsn-core = { git = "https://github.com/tlsnotary/tlsn.git", tag = "v0.1.0-alpha.12", package = "tlsn-core" }
36+
tlsn-verifier = { git = "https://github.com/tlsnotary/tlsn.git", tag = "v0.1.0-alpha.12", package = "tlsn-verifier" }
37+
tlsn-common = { git = "https://github.com/tlsnotary/tlsn.git", tag = "v0.1.0-alpha.12", package = "tlsn-common" }
3838
tower-util = "0.3.1"

demo/react-ts-webpack/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,5 +75,4 @@ If you want to use the hosted PSE notary and proxy:
7575
3. **Open the demo in your browser:**
7676
Go to [http://localhost:8080](http://localhost:8080)
7777
4. **Click the "Start demo" button**
78-
5. **Open Developer Tools** and monitor the console logs
79-
œœ
78+
5. **Open Developer Tools** and monitor the console logs

demo/react-ts-webpack/src/app.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ root.render(<App />);
2626
const local = true; // Toggle between local and remote notary
2727
const notaryUrl = local
2828
? 'http://localhost:7047'
29-
: 'https://notary.pse.dev/v0.1.0-alpha.11';
29+
: 'https://notary.pse.dev/v0.1.0-alpha.12';
3030
const websocketProxyUrl = local
3131
? 'ws://localhost:55688'
3232
: 'wss://notary.pse.dev/proxy?token=raw.githubusercontent.com';
3333
const loggingLevel = 'Info'; // https://github.com/tlsnotary/tlsn/blob/main/crates/wasm/src/log.rs#L8
3434

35-
const serverUrl = 'https://raw.githubusercontent.com/tlsnotary/tlsn/refs/tags/v0.1.0-alpha.11/crates/server-fixture/server/src/data/1kb.json';
35+
const serverUrl = 'https://raw.githubusercontent.com/tlsnotary/tlsn/refs/tags/v0.1.0-alpha.12/crates/server-fixture/server/src/data/1kb.json';
3636
const serverDns = 'raw.githubusercontent.com';
3737

3838
function App(): ReactElement {
@@ -127,7 +127,7 @@ function App(): ReactElement {
127127
secretsHex: notarizationOutputs.secrets,
128128
notaryUrl: notarizationOutputs.notaryUrl,
129129
websocketProxyUrl: notarizationOutputs.websocketProxyUrl,
130-
reveal: commit,
130+
reveal: { ...commit, server_identity: false },
131131
})) as TPresentation;
132132

133133
console.log(await presentation.serialize());

demo/web-to-web-p2p/src/app.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ let verifierLogs: string[] = [];
2929
const p2pProxyUrl = 'ws://localhost:3001';
3030
const serverDns = 'raw.githubusercontent.com';
3131
const webSocketProxy = `wss://notary.pse.dev/proxy?token=${serverDns}`;
32-
const requestUrl = `https://raw.githubusercontent.com/tlsnotary/tlsn/refs/tags/v0.1.0-alpha.11/crates/server-fixture/server/src/data/1kb.json`;
32+
const requestUrl = `https://raw.githubusercontent.com/tlsnotary/tlsn/refs/tags/v0.1.0-alpha.12/crates/server-fixture/server/src/data/1kb.json`;
3333

3434
function App(): ReactElement {
3535
const [ready, setReady] = useState(false);
@@ -200,7 +200,7 @@ function App(): ReactElement {
200200
),
201201
],
202202
};
203-
await prover.reveal(commit);
203+
await prover.reveal({ ...commit, server_identity: false });
204204
addProverLog('Data revealed to verifier');
205205

206206
const result = await verified;
@@ -225,7 +225,7 @@ function App(): ReactElement {
225225
This demo showcases peer-to-peer communication between a web prover
226226
and a web verifier using TLSNotary. The prover fetches data from{' '}
227227
<a
228-
href="https://raw.githubusercontent.com/tlsnotary/tlsn/refs/tags/v0.1.0-alpha.11/crates/server-fixture/server/src/data/1kb.json"
228+
href="https://raw.githubusercontent.com/tlsnotary/tlsn/refs/tags/v0.1.0-alpha.12/crates/server-fixture/server/src/data/1kb.json"
229229
target="_blank"
230230
rel="noopener noreferrer"
231231
className="underline text-blue-400 hover:text-blue-300"

package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)