Skip to content

Commit

Permalink
rename to privateKeyEncrypted
Browse files Browse the repository at this point in the history
  • Loading branch information
TamaraFinogina committed Dec 16, 2024
1 parent 2c21faf commit 7a38861
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 23 deletions.
16 changes: 8 additions & 8 deletions src/auth/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@ export class Auth {
revocationKey: registerDetails.keys.revocationCertificate,
keys: {
ecc: {
privateKey: registerDetails.keys.ecc.privateKeyEncrypted,
publicKey: registerDetails.keys.ecc.publicKey,
privateKeyEncrypted: registerDetails.keys.ecc.privateKeyEncrypted,
},
kyber: {
privateKey: registerDetails.keys.kyber.privateKeyEncrypted,
publicKey: registerDetails.keys.kyber.publicKey,
privateKeyEncrypted: registerDetails.keys.kyber.privateKeyEncrypted,
}
},
referral: registerDetails.referral,
Expand Down Expand Up @@ -100,12 +100,12 @@ export class Auth {
revocationKey: registerDetails.keys.revocationCertificate,
keys: {
ecc: {
privateKey: registerDetails.keys.ecc.privateKeyEncrypted,
publicKey: registerDetails.keys.ecc.publicKey,
privateKeyEncrypted: registerDetails.keys.ecc.privateKeyEncrypted,
},
kyber: {
privateKey: registerDetails.keys.kyber.privateKeyEncrypted,
publicKey: registerDetails.keys.kyber.publicKey,
privateKeyEncrypted: registerDetails.keys.kyber.privateKeyEncrypted,
},
},
referral: registerDetails.referral,
Expand Down Expand Up @@ -181,12 +181,12 @@ export class Auth {
revocateKey: keys.revocationCertificate,
keys: {
ecc: {
privateKey: keys.ecc.privateKeyEncrypted,
publicKey: keys.ecc.publicKey,
privateKeyEncrypted: keys.ecc.privateKeyEncrypted,
},
kyber: {
privateKey: keys.kyber.privateKeyEncrypted,
publicKey: keys.kyber.publicKey,
privateKeyEncrypted: keys.kyber.privateKeyEncrypted,
}
},
},
Expand Down Expand Up @@ -216,12 +216,12 @@ export class Auth {
privateKey: keys.privateKeyEncrypted,
revocationKey: keys.revocationCertificate,
ecc: {
privateKey: keys.ecc.privateKeyEncrypted,
publicKey: keys.ecc.publicKey,
privateKeyEncrypted: keys.ecc.privateKeyEncrypted,
},
kyber: {
privateKey: keys.kyber.privateKeyEncrypted,
publicKey: keys.kyber.publicKey,
privateKeyEncrypted: keys.kyber.privateKeyEncrypted,
}
},
this.headersWithToken(token),
Expand Down
2 changes: 1 addition & 1 deletion src/auth/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ export interface Keys {
publicKey: string;
revocationCertificate: string;
ecc: {
privateKeyEncrypted: string;
publicKey: string;
privateKeyEncrypted: string;
};
kyber: {
publicKey: string | null;
Expand Down
4 changes: 2 additions & 2 deletions src/shared/types/userSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ export interface UserSettings {
revocationKey: string;
keys: {
ecc: {
privateKey: string;
publicKey: string;
privateKeyEncrypted: string;
}
kyber: {
privateKey: string;
publicKey: string;
privateKeyEncrypted: string;
}
}
teams?: boolean;
Expand Down
24 changes: 12 additions & 12 deletions test/auth/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ describe('# auth service tests', () => {
revocationKey: registerDetails.keys.revocationCertificate,
keys: {
ecc: {
privateKey: registerDetails.keys.ecc.privateKeyEncrypted,
publicKey: registerDetails.keys.ecc.publicKey,
privateKeyEncrypted: registerDetails.keys.ecc.privateKeyEncrypted,
},
kyber: {
privateKey: registerDetails.keys.kyber.privateKeyEncrypted,
publicKey: registerDetails.keys.kyber.publicKey,
privateKeyEncrypted: registerDetails.keys.kyber.privateKeyEncrypted,
},
},
referral: registerDetails.referral,
Expand Down Expand Up @@ -128,12 +128,12 @@ describe('# auth service tests', () => {
revocationKey: registerDetails.keys.revocationCertificate,
keys: {
ecc: {
privateKey: registerDetails.keys.ecc.privateKeyEncrypted,
publicKey: registerDetails.keys.ecc.publicKey,
privateKeyEncrypted: registerDetails.keys.ecc.privateKeyEncrypted,
},
kyber: {
privateKey: registerDetails.keys.kyber.privateKeyEncrypted,
publicKey: registerDetails.keys.kyber.publicKey,
privateKeyEncrypted: registerDetails.keys.kyber.privateKeyEncrypted,
},
},
referral: registerDetails.referral,
Expand Down Expand Up @@ -182,8 +182,8 @@ describe('# auth service tests', () => {
publicKey: '',
revocationCertificate: '',
ecc: {
privateKeyEncrypted: '',
publicKey: '',
privateKeyEncrypted: '',
},
kyber: {
publicKey: '',
Expand Down Expand Up @@ -218,8 +218,8 @@ describe('# auth service tests', () => {
publicKey: '',
revocationCertificate: '',
ecc: {
privateKeyEncrypted: '',
publicKey: '',
privateKeyEncrypted: '',
},
kyber: {
publicKey: '',
Expand Down Expand Up @@ -261,8 +261,8 @@ describe('# auth service tests', () => {
publicKey: 'pub',
revocationCertificate: 'rev',
ecc: {
privateKeyEncrypted: 'priv',
publicKey: 'pub',
privateKeyEncrypted: 'priv',
},
kyber: {
publicKey: 'pubKyber',
Expand Down Expand Up @@ -307,12 +307,12 @@ describe('# auth service tests', () => {
revocateKey: 'rev',
keys: {
ecc: {
privateKey: 'priv',
publicKey: 'pub',
privateKeyEncrypted: 'priv',
},
kyber: {
publicKey: 'pubKyber',
privateKey: 'privKyber',
privateKeyEncrypted: 'privKyber',
},
},
},
Expand All @@ -337,8 +337,8 @@ describe('# auth service tests', () => {
publicKey: 'pubk',
revocationCertificate: 'crt',
ecc: {
privateKeyEncrypted: 'priv',
publicKey: 'pub',
privateKeyEncrypted: 'priv',
},
kyber: {
publicKey: 'pubKyber',
Expand All @@ -359,11 +359,11 @@ describe('# auth service tests', () => {
revocationKey: 'crt',
ecc: {
publicKey: 'pub',
privateKey: 'priv',
privateKeyEncrypted: 'priv',
},
kyber: {
publicKey: 'pubKyber',
privateKey: 'privKyber',
privateKeyEncrypted: 'privKyber',
},
},
headers,
Expand Down

0 comments on commit 7a38861

Please sign in to comment.