You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
asyncloadKey(){if(!this.did||!this.password){thrownewError('Missing ara identity or password')}letkeystoreletpasswordtry{constpublicKey=Buffer.from(this.did,'hex')consthash=crypto.blake2b(publicKey).toString('hex')constpath=resolve(rc.network.identity.root,hash,'keystore/ara')keystore=JSON.parse(awaitpify(readFile)(path,'utf8'))password=crypto.blake2b(Buffer.from(this.password))}catch(err){thrownewError('Failed to load keystore')}try{this.secretKey=ss.decrypt(keystore,{key: password.slice(0,16)})}catch(err){debug(err)thrownewError('Password failed to decrypt key')}}
from https://github.com/AraBlocks/ara-reward-dcdn/blob/master/src/user.js to https://github.com/AraBlocks/ara-util/blob/master/keyring.js
see comment in #50
Specifications
The text was updated successfully, but these errors were encountered: