-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
integrate relayer key into E2E and Solana signer
- Loading branch information
1 parent
5da629e
commit 6a64051
Showing
16 changed files
with
628 additions
and
253 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
password | ||
pass2 | ||
pass_relayerkey |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package os | ||
|
||
import ( | ||
"bufio" | ||
"fmt" | ||
"os" | ||
"strings" | ||
) | ||
|
||
// PromptPasswords prompts the user for passwords with the given titles | ||
func PromptPasswords(passwordTitles []string) ([]string, error) { | ||
reader := bufio.NewReader(os.Stdin) | ||
passwords := make([]string, len(passwordTitles)) | ||
|
||
// iterate over password titles and prompt for each | ||
for i, title := range passwordTitles { | ||
fmt.Printf("%s Password: ", title) | ||
Check failure Code scanning / CodeQL Clear-text logging of sensitive information High Sensitive data returned by an access to passwordTitles Error loading related location Loading |
||
password, err := reader.ReadString('\n') | ||
if err != nil { | ||
return nil, err | ||
} | ||
|
||
// trim delimiters | ||
password = strings.TrimSuffix(password, "\n") | ||
passwords[i] = password | ||
} | ||
|
||
return passwords, nil | ||
} |
Oops, something went wrong.