add public key to getmetadata

This commit is contained in:
Michele Balistreri 2022-12-30 08:03:21 +01:00
parent 73e8c3e830
commit b50cfe22ac
No known key found for this signature in database
GPG Key ID: E9567DA33A4F791A
2 changed files with 4 additions and 2 deletions

View File

@ -588,6 +588,7 @@ func (f *KeycardFlow) getMetadataFlow(kc *keycardContext) (FlowStatus, error) {
}
m.Wallets[i].Address = k.Address
m.Wallets[i].PublicKey = k.PublicKey
}
}

View File

@ -58,6 +58,7 @@ type KeyPair struct {
type Wallet struct {
Path string `json:"path"`
Address string `json:"address,omitempty"`
PublicKey hexString `json:"publicKey"`
}
type Metadata struct {