Skip to content

Commit 1012df6

Browse files
authored
Merge pull request wwWallet#66 from wwWallet/credential-unique-keypair
Support unique, per-credential key pairs
2 parents d92de3c + 92eca8f commit 1012df6

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/routers/user.router.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -326,14 +326,11 @@ userController.get('/account-info', async (req: Request, res: Response) => {
326326
}
327327
const user = userRes.unwrap();
328328

329-
const keys = jsonParseTaggedBinary(user.keys.toString());
330-
331329
res.status(200).send({
332330
uuid: user.uuid,
333331
username: user.username,
334332
displayName: user.displayName,
335333
hasPassword: user.passwordHash !== null,
336-
publicKey: keys.publicKey,
337334
webauthnCredentials: (user.webauthnCredentials || []).map(cred => ({
338335
createTime: cred.createTime,
339336
credentialId: cred.credentialId,

src/services/WalletKeystoreManagerService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ export class WalletKeystoreManagerService implements WalletKeystoreManager {
2121
const fcmToken = registrationParams.fcm_token ? registrationParams.fcm_token : "";
2222

2323
// depending on additionalParameters, decide to use the corresponding keystore service
24-
if (registrationParams.keys && registrationParams.privateData) {
24+
if (registrationParams.privateData) {
2525
return Ok({
2626
fcmToken,
27-
keys: Buffer.from(JSON.stringify(registrationParams.keys)),
27+
keys: Buffer.from(""),
2828
displayName: registrationParams.displayName,
2929
privateData: Buffer.from(registrationParams.privateData),
3030
walletType: WalletType.CLIENT

0 commit comments

Comments
 (0)