remove out of date comments
This commit is contained in:
parent
8e2ab0b74a
commit
848a918eda
6
rpc.js
6
rpc.js
@ -1357,12 +1357,6 @@ var validateLoginBlock = function (Env, publicKey, signature, block, cb) {
|
|||||||
if (!verified) { return void cb("E_COULD_NOT_VERIFY"); }
|
if (!verified) { return void cb("E_COULD_NOT_VERIFY"); }
|
||||||
|
|
||||||
return void cb(null, u8_block);
|
return void cb(null, u8_block);
|
||||||
|
|
||||||
// signature 64 bytes
|
|
||||||
// sign.detached(hash(decodeBase64_content(base64_content)), decodeBase64(publicKey))
|
|
||||||
|
|
||||||
// 1 byte version
|
|
||||||
// base64_content
|
|
||||||
};
|
};
|
||||||
|
|
||||||
var createLoginBlockPath = function (Env, publicKey) {
|
var createLoginBlockPath = function (Env, publicKey) {
|
||||||
|
|||||||
@ -1146,7 +1146,7 @@ define([
|
|||||||
init: true,
|
init: true,
|
||||||
userHash: userHash || LocalStore.getUserHash(),
|
userHash: userHash || LocalStore.getUserHash(),
|
||||||
anonHash: LocalStore.getFSHash(),
|
anonHash: LocalStore.getFSHash(),
|
||||||
localToken: tryParsing(localStorage.getItem(Constants.tokenKey)), // TODO move tihs to LocalStore ?
|
localToken: tryParsing(localStorage.getItem(Constants.tokenKey)), // TODO move this to LocalStore ?
|
||||||
language: common.getLanguage(),
|
language: common.getLanguage(),
|
||||||
messenger: rdyCfg.messenger, // Boolean
|
messenger: rdyCfg.messenger, // Boolean
|
||||||
driveEvents: rdyCfg.driveEvents // Boolean
|
driveEvents: rdyCfg.driveEvents // Boolean
|
||||||
|
|||||||
@ -97,8 +97,6 @@ define([
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
// FIXME don't spread the functions below across this file and common-hash
|
|
||||||
// find a permanent home for these hacks
|
|
||||||
var urlSafeB64 = function (u8) {
|
var urlSafeB64 = function (u8) {
|
||||||
return Nacl.util.encodeBase64(u8).replace(/\//g, '-');
|
return Nacl.util.encodeBase64(u8).replace(/\//g, '-');
|
||||||
};
|
};
|
||||||
@ -117,16 +115,6 @@ define([
|
|||||||
return absolute + '#' + symmetric;
|
return absolute + '#' + symmetric;
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
|
||||||
Block.createBlockHash = function (href, key) {
|
|
||||||
if (typeof(href) !== 'string') { return; }
|
|
||||||
if (!(key instanceof Uint8Array)) { return; }
|
|
||||||
|
|
||||||
try { return href + '#' + Nacl.util.encodeBase64(key); }
|
|
||||||
catch (e) { return; }
|
|
||||||
};
|
|
||||||
*/
|
|
||||||
|
|
||||||
var decodeSafeB64 = function (b64) {
|
var decodeSafeB64 = function (b64) {
|
||||||
try {
|
try {
|
||||||
return Nacl.util.decodeBase64(b64.replace(/\-/g, '/'));
|
return Nacl.util.decodeBase64(b64.replace(/\-/g, '/'));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user