Skip to content

Conversation

nikgraf
Copy link
Collaborator

@nikgraf nikgraf commented Nov 12, 2024

  • Adding privateKeys to accounts. They public key becomes their id
  • Signing all event transactions and verifying them on the server and in the tests
  • Migrated all space events to be an effect for better error handling

@nikgraf nikgraf requested a review from cmwhited November 12, 2024 11:11
@@ -0,0 +1,5 @@
const encoder = new TextEncoder();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Will this work on node and ReactNative envs? When I was working on the generateId I read about TextEncoder and it was mentioned it doesn't always work on ReactNative?? Maybe it needs a polyfill?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Spot on question 👏 This was a problem in the past, but from Expo SDK 51 (React Native 74), Hermes supports TextEncoder natively.

Source: https://github.com/EvanBacon/text-decoder

@nikgraf nikgraf merged commit 1fbec34 into main Nov 13, 2024
1 check passed
@nikgraf nikgraf deleted the sign-and-verify-space-events branch November 13, 2024 05:15
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