Skip to content

Commit

Permalink
fix comments following review
Browse files Browse the repository at this point in the history
  • Loading branch information
asa93 committed Nov 5, 2024
1 parent e8c4c20 commit fb52501
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 34 deletions.
13 changes: 6 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/entries/Offscreen/Offscreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,8 @@ async function createProof(options: {
const prover: _Prover = await new Prover({
id,
serverDns: hostname,
maxSentData: 0,
maxRecvData: 0,
maxSentData: 0, //legacy fields from tlsn, to remove
maxRecvData: 0, //legacy fields from tlsn, to remove
});

await prover.setup(await notary.sessionUrl(0, 0));
Expand Down
42 changes: 22 additions & 20 deletions src/pages/Options/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -280,26 +280,28 @@ function NormalOptions(props: {
<div className="input border bg-slate-100">{version}</div>
</div> */}

<InputField
label="Your public key"
placeholder="Public key"
value={bigintToHex(identity?.commitment)}
type="text"
readOnly
multiline
LabelIcon={
<div
onClick={() => {
chrome.tabs.create({
url: 'https://eternis.ai/',
});
}}
className="cursor-pointer"
>
<InfoCircle />
</div>
}
/>
{identity && (
<InputField
label="Your public key"
placeholder="Public key"
value={bigintToHex(identity?.commitment)}
type="text"
readOnly
multiline
LabelIcon={
<div
onClick={() => {
chrome.tabs.create({
url: 'https://eternis.ai/',
});
}}
className="cursor-pointer"
>
<InfoCircle />
</div>
}
/>
)}

<InputField
label="Notary API"
Expand Down
6 changes: 1 addition & 5 deletions src/pages/ProofViewer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,7 @@ export default function ProofViewer(props?: { proof?: any }): ReactElement {
useEffect(() => {
const AttributeAttestation = request?.proof;
if (!AttributeAttestation) return;
if (AttributeAttestation) {
setAttributes(attributes);
} else {
//setSessionData(signedSessionDecoded.response);
}
else setAttributes(attributes);
}, [request]);

if (!request?.proof) return <></>;
Expand Down

0 comments on commit fb52501

Please sign in to comment.