From 2ca4dbb1908cf15612746c1fe681ac470d047b57 Mon Sep 17 00:00:00 2001 From: Angira Kekteeva Date: Wed, 1 Jun 2022 01:27:20 +0400 Subject: [PATCH] [#482] authmate: Add wallet public key to output Signed-off-by: Angira Kekteeva --- authmate/authmate.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/authmate/authmate.go b/authmate/authmate.go index 4f7372e2..e90ff985 100644 --- a/authmate/authmate.go +++ b/authmate/authmate.go @@ -132,6 +132,7 @@ type ( AccessKeyID string `json:"access_key_id"` SecretAccessKey string `json:"secret_access_key"` OwnerPrivateKey string `json:"owner_private_key"` + WalletPublicKey string `json:"wallet_public_key"` ContainerID string `json:"container_id"` } @@ -263,6 +264,7 @@ func (a *Agent) IssueSecret(ctx context.Context, w io.Writer, options *IssueSecr AccessKeyID: accessKeyID, SecretAccessKey: secrets.AccessKey, OwnerPrivateKey: hex.EncodeToString(secrets.EphemeralKey.Bytes()), + WalletPublicKey: hex.EncodeToString(options.NeoFSKey.PublicKey().Bytes()), ContainerID: id.EncodeToString(), }