-
Notifications
You must be signed in to change notification settings - Fork 8
chore(consolidate packages): move current packages into new hypergraph package #86
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
Closed
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmwhited
commented
Jan 10, 2025
|
||
describe('identity encryption', () => { | ||
// figure out why this test is failing | ||
it.skip('should encrypt and decrypt an identity using a wallet', async () => { |
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.
@pcarranzav will need your help once you return. I am not sure why this test, is suddenly failing; but passes in the graph-framework-identity package. I tried making sure deps were all the same, etc. Not sure what is going on. Here is the failure:
TypeError: Failed to normalize algorithm: 'info' of 'HkdfParams' (passed algorithm) is not instance of ArrayBuffer, Buffer, TypedArray, or DataView.
❯ hkdf ../../node_modules/.pnpm/@[email protected][email protected][email protected][email protected][email protected]/node_modules/@xmtp/xmtp-js/src/encryption/encryption.ts:79:24
❯ Module.encrypt$1 ../../node_modules/.pnpm/@[email protected][email protected][email protected][email protected][email protected]/node_modules/@xmtp/xmtp-js/src/encryption/encryption.ts:25:15
❯ Module.encryptIdentity src/identity/identity-encryption.ts:46:34
44| ].join('\n');
45| const keysMsg = new TextEncoder().encode(keysTxt);
46| const ciphertext = bytesToHex((await encrypt(keysMsg, secretKey)).toBytes());
| ^
47| return { ciphertext, nonce: bytesToHex(nonce) };
48| }
…h. revert back to react 18 due to breaking change on 19
fd8cc74
to
61c14f8
Compare
Replaced by #89 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Closes #85
This came from a few discussions, but the goal of this is to move the functionality in the:
packages into one publishable package:
hypergraph
(with npm name@graphprotocol/hypergraph
).This will be the package that devs will install in their apps to interact with the hypergraph framework.
Can import like:
This first PR just moved the code/files/tests into this newly created and setup
hypergraph
package.Followup PRs will be made to:
apps/server
&apps/events
to import fromhypergraph
graph-framework{-identity/key/messages/schema/space-events/utils}
packages@graphprotocol/hypergraph-react
packageNotes
A couple tests broke?? Not sure if it was due to dependency updates or what. But may need help fixing cc @nikgraf @pcarranzav