-
Notifications
You must be signed in to change notification settings - Fork 7
fix: inboxes and app keys #277
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -627,7 +627,7 @@ export function HypergraphAppProvider({ | |||||||||||||
} | ||||||||||||||
const inboxCreator = Inboxes.recoverAccountInboxCreatorKey(response.inbox); | ||||||||||||||
if (inboxCreator !== identity.signaturePublicKey) { | ||||||||||||||
console.error('Invalid inbox creator', response.inbox); | ||||||||||||||
console.error('Invalid inbox creator', response.inbox, inboxCreator, identity.signaturePublicKey); | ||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [nitpick] Consider using a more structured logging approach with clear labels for debugging values, such as: console.error('Invalid inbox creator:', { inbox: response.inbox, recovered: inboxCreator, expected: identity.signaturePublicKey })
Suggested change
Copilot uses AI. Check for mistakes. Positive FeedbackNegative Feedback |
||||||||||||||
return; | ||||||||||||||
} | ||||||||||||||
|
||||||||||||||
|
@@ -1019,7 +1019,7 @@ export function HypergraphAppProvider({ | |||||||||||||
} | ||||||||||||||
const message = await Inboxes.createSpaceInboxCreationMessage({ | ||||||||||||||
author: { | ||||||||||||||
accountAddress: identity.address, | ||||||||||||||
accountAddress: identity.accountAddress, | ||||||||||||||
signaturePublicKey, | ||||||||||||||
encryptionPublicKey, | ||||||||||||||
signaturePrivateKey, | ||||||||||||||
|
@@ -1118,7 +1118,7 @@ export function HypergraphAppProvider({ | |||||||||||||
throw new Error('Missing keys'); | ||||||||||||||
} | ||||||||||||||
const message = await Inboxes.createAccountInboxCreationMessage({ | ||||||||||||||
accountAddress: identity.address, | ||||||||||||||
accountAddress: identity.accountAddress, | ||||||||||||||
isPublic, | ||||||||||||||
authPolicy, | ||||||||||||||
encryptionPublicKey, | ||||||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The TODO comment spans multiple lines but only shows the first line in the diff. Consider adding a tracking issue reference or deadline to this TODO comment to ensure this architectural concern is addressed.
Copilot uses AI. Check for mistakes.