Skip to content
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

feat: add KeyringKeyname #4

Merged
merged 1 commit into from
Aug 28, 2024

Conversation

jcstein
Copy link
Member

@jcstein jcstein commented Aug 28, 2024

Overview

Resolves #3

@@ -14,7 +14,13 @@
## Example usage

```
./celestia-server --enable-rpc --rpc-addr $RPC_ADDR --rpc-port $RPC_PORT --celestia.auth-token $AUTH_TOKEN --celestia.gas-price $GAS_PRICE --celestia.gas-multiplier $GAS_MULTIPLIER --celestia.namespace-id $NAMESPACEID --celestia.rpc $CELESTIA_NODE_ENDPOINT
./celestia-server --enable-rpc --rpc-addr $RPC_ADDR \
Copy link
Member Author

Choose a reason for hiding this comment

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

This is just to improve UX of the readme and avoid people sidescrolling, so they can see things at once

@@ -38,6 +38,7 @@ type DAConfig struct {
NamespaceId string `koanf:"namespace-id" `
AuthToken string `koanf:"auth-token" reload:"hot"`
ReadAuthToken string `koanf:"read-auth-token" reload:"hot"`
KeyringKeyname string `koanf:"keyring-keyname" reload:"hot"`
Copy link
Member Author

Choose a reason for hiding this comment

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

I added these in this spot of the struct so that DA-related auth stuff is near each other. Totally cool to move elsewhere if it makes more sense

@@ -704,3 +717,8 @@ func (c *CelestiaDA) returnErrorHelper(err error) (*ReadResult, error) {

return nil, err
}

// Validate that the KeyringKeyname is a alphanumeric string of length > 0
func isValidKeyringKeyname(name string) bool {
Copy link
Member Author

Choose a reason for hiding this comment

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

I'm not sure if we need this tbh!

Copy link
Collaborator

@Ferret-san Ferret-san left a comment

Choose a reason for hiding this comment

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

LGTM

@Ferret-san Ferret-san merged commit 749e265 into celestiaorg:main Aug 28, 2024
1 check passed
@jcstein jcstein deleted the jcs/add-multiaccounts branch August 29, 2024 03:29
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.

[Feature Request]: Support MultiAccounts on celestia-node by adding --celestia.keyring-keyname flag
2 participants