aboutsummaryrefslogtreecommitdiffstats
path: root/ethpub
diff options
context:
space:
mode:
authorMaran <maran.hidskes@gmail.com>2014-05-05 19:49:46 +0800
committerMaran <maran.hidskes@gmail.com>2014-05-05 19:49:46 +0800
commit8adad0654a46e4cad925a14f1c238081958558df (patch)
treea165ae4c3823def5ffdca337143cc0bf8f130245 /ethpub
parent39b8c83ba66d429d04fa8b9be62813c848f0d606 (diff)
downloaddexon-8adad0654a46e4cad925a14f1c238081958558df.tar.gz
dexon-8adad0654a46e4cad925a14f1c238081958558df.tar.zst
dexon-8adad0654a46e4cad925a14f1c238081958558df.zip
Added more JSON niceties to types
Diffstat (limited to 'ethpub')
-rw-r--r--ethpub/types.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/ethpub/types.go b/ethpub/types.go
index 4d9f9ad85..522f0e7ac 100644
--- a/ethpub/types.go
+++ b/ethpub/types.go
@@ -34,9 +34,9 @@ func NewPTx(tx *ethchain.Transaction) *PTx {
}
type PKey struct {
- Address string
- PrivateKey string
- PublicKey string
+ Address string `json:"address"`
+ PrivateKey string `json:"privateKey"`
+ PublicKey string `json:"publicKey"`
}
func NewPKey(key *ethchain.KeyPair) *PKey {