@ -1050,7 +1050,7 @@ define([
var blockHash = LocalStore.getBlockHash();
if (blockHash) {
console.log(blockHash);
var parsed = Hash.parseBlockHash(blockHash);
var parsed = Block.parseBlockHash(blockHash);
if (typeof(parsed) !== 'object') {
console.error("Failed to parse blockHash");
@ -58,7 +58,7 @@ define([
localStorage[Constants.userHashKey] = sHash;
};
LocalStore.getBlockHash = function () {
var getBlockHash = LocalStore.getBlockHash = function () {
return localStorage[Constants.blockHashKey];
@ -71,7 +71,8 @@ define([
LocalStore.isLoggedIn = function () {
return typeof getUserHash() === "string";
return typeof getBlockHash() === 'string' ||
typeof getUserHash() === "string";
@ -34,8 +34,6 @@ define([
var symmetric = seed.subarray(Nacl.sign.seedLength,
Nacl.sign.seedLength + Nacl.secretbox.keyLength);
console.log("symmetric key: ", Nacl.util.encodeBase64(symmetric));
return {
sign: Nacl.sign.keyPair.fromSeed(signSeed), // 32 bytes
symmetric: symmetric, // 32 bytes ...