From 08c16f00d816d78e4328dd4c955b81b9c8cc7e40 Mon Sep 17 00:00:00 2001 From: Andrea Franz Date: Fri, 8 Oct 2021 11:09:45 +0200 Subject: [PATCH] add address to exported key (cherry picked from commit f33649c885788aedb5270073c4325a21fba7ecbb) --- backends/statusgo/keycard.nim | 3 ++- types/keycard.nim | 1 + vendor/nim-keycard-go | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/backends/statusgo/keycard.nim b/backends/statusgo/keycard.nim index 8b96331..2d7dd16 100644 --- a/backends/statusgo/keycard.nim +++ b/backends/statusgo/keycard.nim @@ -81,7 +81,8 @@ method keycardExportKey*(self: StatusGoBackend, derive: bool, makeCurrent: bool, result = KeycardExportedKey( privKey: parsedResponse["privateKey"].getStr(), - pubKey: parsedResponse["publicKey"].getStr() + pubKey: parsedResponse["publicKey"].getStr(), + address: parsedResponse["address"].getStr() ) method keycardGetStatusApplication*(self: StatusGoBackend): KeycardStatus = diff --git a/types/keycard.nim b/types/keycard.nim index d658208..26ab67e 100644 --- a/types/keycard.nim +++ b/types/keycard.nim @@ -45,4 +45,5 @@ type KeycardStatus* = ref object type KeycardExportedKey* = ref object privKey*: string pubKey*: string + address*: string diff --git a/vendor/nim-keycard-go b/vendor/nim-keycard-go index 469aa27..7a44859 160000 --- a/vendor/nim-keycard-go +++ b/vendor/nim-keycard-go @@ -1 +1 @@ -Subproject commit 469aa272688102293c408ea40f422e52a22a8c8c +Subproject commit 7a448595f758c7a1ae36ca935957b316fcf6c8b6