-
Notifications
You must be signed in to change notification settings - Fork 5
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
Conversation
@@ -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 \ |
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.
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"` |
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.
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 { |
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.
I'm not sure if we need this tbh!
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.
LGTM
Overview
Resolves #3