Added a simple background
This commit is contained in:
parent
38fb975be3
commit
e4151ddeea
22
index.html
22
index.html
@ -2,7 +2,15 @@
|
|||||||
<html>
|
<html>
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<title>FLO Operators</title>
|
<title>SuperNode Storage</title>
|
||||||
|
<style>
|
||||||
|
body{
|
||||||
|
background-color: lightgrey
|
||||||
|
}
|
||||||
|
h1{
|
||||||
|
text-align: center
|
||||||
|
}
|
||||||
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
@ -29,7 +37,7 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<body onload="onLoadStartUp()">
|
<body onload="onLoadStartUp()">
|
||||||
use console
|
<h1>SuperNode Storage</h1>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
/*!
|
/*!
|
||||||
@ -4872,7 +4880,6 @@
|
|||||||
|
|
||||||
var receiverDerivedKey = this.deriveReceiverSharedKey(data.senderPublicKeyString, receiverECKeyData
|
var receiverDerivedKey = this.deriveReceiverSharedKey(data.senderPublicKeyString, receiverECKeyData
|
||||||
.privateKey);
|
.privateKey);
|
||||||
console.log("receiverDerivedKey", receiverDerivedKey);
|
|
||||||
|
|
||||||
let receiverKey = receiverDerivedKey.XValue + receiverDerivedKey.YValue;
|
let receiverKey = receiverDerivedKey.XValue + receiverDerivedKey.YValue;
|
||||||
let decryptMsg = Crypto.AES.decrypt(data.secret, receiverKey);
|
let decryptMsg = Crypto.AES.decrypt(data.secret, receiverKey);
|
||||||
@ -5371,9 +5378,9 @@
|
|||||||
if (data.senderID == floCrypto.getFloIDfromPubkeyHex(data.pubKey) && floCrypto.verifySign(
|
if (data.senderID == floCrypto.getFloIDfromPubkeyHex(data.pubKey) && floCrypto.verifySign(
|
||||||
JSON.stringify(data.data), data.sign, data.pubKey)) {
|
JSON.stringify(data.data), data.sign, data.pubKey)) {
|
||||||
if (floGlobals.storageList.include(data.application))
|
if (floGlobals.storageList.include(data.application))
|
||||||
let table = data.application;
|
var table = data.application;
|
||||||
else
|
else
|
||||||
let table = floGlobals.defaultStorage;
|
var table = floGlobals.defaultStorage;
|
||||||
|
|
||||||
compactIDB.addData(table, {
|
compactIDB.addData(table, {
|
||||||
senderID: data.senderID,
|
senderID: data.senderID,
|
||||||
@ -5426,8 +5433,8 @@
|
|||||||
}
|
}
|
||||||
idb.onsuccess = (event) => {
|
idb.onsuccess = (event) => {
|
||||||
var db = event.target.result;
|
var db = event.target.result;
|
||||||
if (JSON.stringify(Object.values(db.objectStoreNames)) === JSON.stringify(Object.keys(
|
if (JSON.stringify(Object.values(db.objectStoreNames).sort()) === JSON.stringify(Object.keys(
|
||||||
objectStores)))
|
objectStores).sort()))
|
||||||
resolve("Initiated IndexedDB");
|
resolve("Initiated IndexedDB");
|
||||||
else
|
else
|
||||||
reject("IndexedDB already exist with different ObjectStores!");
|
reject("IndexedDB already exist with different ObjectStores!");
|
||||||
@ -5979,6 +5986,7 @@
|
|||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
var IndexesList = ["senderID","receiverID","message","sign","application","type","comment"];
|
var IndexesList = ["senderID","receiverID","message","sign","application","type","comment"];
|
||||||
var primaryKey = "vectorClock";
|
var primaryKey = "vectorClock";
|
||||||
|
var storageList = floGlobals.storageList;
|
||||||
var obj = {
|
var obj = {
|
||||||
lastTx:{},
|
lastTx:{},
|
||||||
supernodes:{
|
supernodes:{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user