Skip to content

Commit

Permalink
Update key generation to use signing service API
Browse files Browse the repository at this point in the history
Replaced direct key generation with the signing service's `NewKey` method for better integration and consistency. Adjusted the `Add` method to utilize this updated approach. This ensures alignment with the operator's signing process.
  • Loading branch information
aricart committed Dec 19, 2024
1 parent 2e198d6 commit cd9c3e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion account_signingkeys.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func (as *accountSigningKeys) List() []string {
}

func (as *accountSigningKeys) Add() (string, error) {
k, err := KeyFor(nkeys.PrefixByteAccount)
k, err := as.data.Operator.SigningService.NewKey(nkeys.PrefixByteAccount)
if err != nil {
return "", err
}
Expand Down

0 comments on commit cd9c3e7

Please sign in to comment.