From 93a7f324c06321023e2702f7989fdfad32573793 Mon Sep 17 00:00:00 2001 From: Determinant Date: Sat, 19 Sep 2020 22:27:11 -0400 Subject: apply mulit-coin universally --- plugin/evm/service.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'plugin/evm') diff --git a/plugin/evm/service.go b/plugin/evm/service.go index c34a59d..8ede1b0 100644 --- a/plugin/evm/service.go +++ b/plugin/evm/service.go @@ -143,7 +143,8 @@ type ExportKeyArgs struct { // ExportKeyReply is the response for ExportKey type ExportKeyReply struct { // The decrypted PrivateKey for the Address provided in the arguments - PrivateKey string `json:"privateKey"` + PrivateKey string `json:"privateKey"` + PrivateKeyHex string `json:"privateKeyHex"` } // ExportKey returns a private key from the provided user @@ -167,6 +168,7 @@ func (service *AvaxAPI) ExportKey(r *http.Request, args *ExportKeyArgs, reply *E return fmt.Errorf("problem retrieving private key: %w", err) } reply.PrivateKey = constants.SecretKeyPrefix + formatting.CB58{Bytes: sk.Bytes()}.String() + reply.PrivateKeyHex = hexutil.Encode(sk.Bytes()) return nil } -- cgit v1.2.3