mirror of
https://github.com/tlsnotary/PageSigner.git
synced 2026-01-08 22:27:57 -05:00
update after server fix
This commit is contained in:
@@ -92,11 +92,11 @@ export class Main{
|
|||||||
// check if we need to communicate with a new version of the notary server
|
// check if we need to communicate with a new version of the notary server
|
||||||
const notaryVersion = await getPref('notaryServerVersion');
|
const notaryVersion = await getPref('notaryServerVersion');
|
||||||
if (notaryVersion === null){
|
if (notaryVersion === null){
|
||||||
await addNewPreference('notaryServerVersion', 14);
|
await addNewPreference('notaryServerVersion', 16);
|
||||||
await setPref('trustedOracle', {});
|
await setPref('trustedOracle', {});
|
||||||
} else if (notaryVersion < 14) {
|
} else if (notaryVersion < 16) {
|
||||||
// the notary server was upgraded
|
// the notary server was upgraded
|
||||||
await setPref('notaryServerVersion', 14);
|
await setPref('notaryServerVersion', 16);
|
||||||
await setPref('trustedOracle', {});
|
await setPref('trustedOracle', {});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ export const globals = {
|
|||||||
// If this IP address becomes unavailable, Pagesigner will query backupUrl for
|
// If this IP address becomes unavailable, Pagesigner will query backupUrl for
|
||||||
// a new notary's IP address and will save the new IP address in the preferences.
|
// a new notary's IP address and will save the new IP address in the preferences.
|
||||||
// defaultNotaryIP: '127.0.0.1',
|
// defaultNotaryIP: '127.0.0.1',
|
||||||
defaultNotaryIP: '3.238.184.21',
|
defaultNotaryIP: '44.201.26.208',
|
||||||
defaultNotaryPort: 10011,
|
defaultNotaryPort: 10011,
|
||||||
// backupUrl is the URL to query to get the IP address of another notary
|
// backupUrl is the URL to query to get the IP address of another notary
|
||||||
// server in case if defaultNotaryIP is unreachable
|
// server in case if defaultNotaryIP is unreachable
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ export async function init_db() {
|
|||||||
preferences.add({name:'firstTimeInitCompletedv2', value:false});
|
preferences.add({name:'firstTimeInitCompletedv2', value:false});
|
||||||
preferences.add({name:'parsedCircuits', value:{}});
|
preferences.add({name:'parsedCircuits', value:{}});
|
||||||
preferences.add({name:'trustedOracle', value:{}});
|
preferences.add({name:'trustedOracle', value:{}});
|
||||||
preferences.add({name:'notaryServerVersion', value:14});
|
preferences.add({name:'notaryServerVersion', value:16});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
dbReq.onsuccess = function (event) {
|
dbReq.onsuccess = function (event) {
|
||||||
|
|||||||
@@ -9,7 +9,8 @@ const rootsOfTrust = [
|
|||||||
'snap-07eda3ed4836f82fb',
|
'snap-07eda3ed4836f82fb',
|
||||||
'snap-023d50ee97873a1f0',
|
'snap-023d50ee97873a1f0',
|
||||||
'snap-0e50af508006037dc',
|
'snap-0e50af508006037dc',
|
||||||
'snap-023dda76582a6b29f'];
|
'snap-023dda76582a6b29f',
|
||||||
|
'snap-027ade4f1002864da'];
|
||||||
// URLFetcher trusted enclave measurements, see
|
// URLFetcher trusted enclave measurements, see
|
||||||
// https://github.com/tlsnotary/URLFetcher
|
// https://github.com/tlsnotary/URLFetcher
|
||||||
const URLFetcherPCR0 = 'f70217239e8a1cb0f3c010b842a279e2b8d30d3700d7e4722fef22291763479a13783dc76d5219fabbd7e5aa92a7b255';
|
const URLFetcherPCR0 = 'f70217239e8a1cb0f3c010b842a279e2b8d30d3700d7e4722fef22291763479a13783dc76d5219fabbd7e5aa92a7b255';
|
||||||
|
|||||||
Reference in New Issue
Block a user