Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

rolznz
Copy link
Contributor

@rolznz rolznz commented Sep 17, 2025

spark connector

image

@rolznz
Copy link
Contributor Author

rolznz commented Sep 18, 2025

@pavanjoshi914 I think we should fix this before merging. The link to setup the keys is also broken because it shows steps to create a new master key.
image

image

I think it would be simpler to derive the nostr key too when generating the master key and extract the code so the same things happen when we generate a master key for Spark as what happens if you generate a master key normally.

CC @reneaaron @bumi

data: nostrPrivateKey,
};
nostrPrivateKey = mnemonic.deriveNostrPrivateKeyHex();
} else if (message.args?.mnemonic) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm just wondering if this is the best approach since we add more complexity to these functions to both handle accounts and non-accounts.

But I can't see any other way except actually creating the account before we validate it 🤔

Copy link
Contributor

Choose a reason for hiding this comment

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

creating account before validating will go totally opposite to the existing flows that we have for other connectors. instead its better to handle this at script level

it just generates key in two way. either getting mnemonic from account id or if its passed explicitly. i guess this is more better to do somehow

@rolznz rolznz requested review from bumi and reneaaron September 21, 2025 14:08
@rolznz
Copy link
Contributor Author

rolznz commented Sep 21, 2025

@bumi @reneaaron we introduce something new here with the mnemonic generation before the account creation, and it creates a bit of complexity in the code. Not sure if this is OK for now or there is a better way we could do it?

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