SHA256
Обновление архитектуры ключей и кошельков
This commit is contained in:
@@ -160,12 +160,17 @@ export class KeyRotationClient {
|
||||
}
|
||||
const state=await this.notifyPdaRotation(signature);
|
||||
if(storagePwd) {
|
||||
await updateEncryptedUserSecrets(login, storagePwd, (current)=>({
|
||||
...(current||{}),
|
||||
rootKey:newBundle.rootPair.privatePkcs8B64,
|
||||
blockchainKey:newBundle.blockchainPair.privatePkcs8B64,
|
||||
clientKey:newBundle.clientPair.privatePkcs8B64,
|
||||
}));
|
||||
await updateEncryptedUserSecrets(login, storagePwd, (current)=>{
|
||||
const next={
|
||||
...(current||{}),
|
||||
blockchainKey:newBundle.blockchainPair.privatePkcs8B64,
|
||||
clientKey:newBundle.clientPair.privatePkcs8B64,
|
||||
};
|
||||
// Arweave SAWD-v1 привязан к blockchain key: после ротации старый JWK-cache недействителен.
|
||||
delete next.arweaveWallet;
|
||||
delete next.rootKey;
|
||||
return next;
|
||||
});
|
||||
}
|
||||
return state;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user