From cd9c3e7f143aa32e3643724ee58fe6ea90893aac Mon Sep 17 00:00:00 2001 From: Alberto Ricart Date: Thu, 19 Dec 2024 10:20:25 -0600 Subject: [PATCH] Update key generation to use signing service API 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. --- account_signingkeys.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account_signingkeys.go b/account_signingkeys.go index 28debd6..0be1132 100644 --- a/account_signingkeys.go +++ b/account_signingkeys.go @@ -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 }