Skip to content

fix: get signing key by pub key user check#1950

Open
mjuchli-da wants to merge 6 commits into
mainfrom
mjuchli/signing-store-sql-tests
Open

fix: get signing key by pub key user check#1950
mjuchli-da wants to merge 6 commits into
mainfrom
mjuchli/signing-store-sql-tests

Conversation

@mjuchli-da

Copy link
Copy Markdown
Contributor

No description provided.

Signed-off-by: Marc Juchli <marc.juchli@digitalasset.com>
@mjuchli-da mjuchli-da self-assigned this Jun 8, 2026
@mjuchli-da mjuchli-da requested a review from a team as a code owner June 8, 2026 09:37

@pawelstepien-da pawelstepien-da left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good, but it exposed an issue in wallet-kernel signing driver - it uses signing store without auth and therefore assertConnected fails when driver calls getSigningKeyByPublicKey during wallet creation.

Signed-off-by: Marc Juchli <marc.juchli@digitalasset.com>
Comment thread core/wallet-auth/src/auth-utils.test.ts Fixed
Comment thread core/wallet-auth/src/auth-utils.test.ts Fixed
Comment thread core/wallet-auth/src/auth-utils.test.ts Fixed
Comment thread core/wallet-auth/src/auth-utils.test.ts Fixed
Comment thread core/wallet-auth/src/auth-utils.test.ts Fixed
Signed-off-by: Marc Juchli <marc.juchli@digitalasset.com>
Signed-off-by: Marc Juchli <marc.juchli@digitalasset.com>
…-sql-tests

Signed-off-by: Marc Juchli <marc.juchli@digitalasset.com>
Signed-off-by: Marc Juchli <marc.juchli@digitalasset.com>
internalTxId: params.internalTxId,
}),
userIdentifier: userId,
userIdentifier: authContext?.email,

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

userId used to be the email as far as i can see.

please double-check @pawelstepien-da

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes we definitely used value from email here. In BD signing driver controller the argument was called userId, it was typed as userId: AuthContext['userId'], but it was actually supposed to be email, so it was quite confusing and is so much clearer now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants