mirror of
https://github.com/tlsnotary/tlsn-js.git
synced 2026-04-24 03:00:25 -04:00
chore: update config options + update to alpha.12 (#113)
* chore: update config options * Alpha.12 --------- Co-authored-by: Hendrik Eeckhaut <hendrik@eeckhaut.org>
This commit is contained in:
@@ -6,6 +6,7 @@ import {
|
||||
mapStringToRange,
|
||||
subtractRanges,
|
||||
Transcript,
|
||||
Reveal,
|
||||
} from '../../src/lib';
|
||||
import * as Comlink from 'comlink';
|
||||
import { HTTPParser } from 'http-parser-js';
|
||||
@@ -79,10 +80,14 @@ const { init, Prover, Presentation }: any = Comlink.wrap(
|
||||
};
|
||||
console.log(commit);
|
||||
const notarizationOutput = await prover.notarize(commit);
|
||||
const reveal: Reveal = {
|
||||
...commit,
|
||||
server_identity: false,
|
||||
};
|
||||
const presentation = (await new Presentation({
|
||||
attestationHex: notarizationOutput.attestation,
|
||||
secretsHex: notarizationOutput.secrets,
|
||||
reveal: commit,
|
||||
reveal: reveal,
|
||||
notaryUrl: notary.url,
|
||||
websocketProxyUrl: 'wss://notary.pse.dev/proxy',
|
||||
})) as _Presentation;
|
||||
|
||||
Reference in New Issue
Block a user