mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-18 19:00:46 +00:00
Added more JSON niceties to types
This commit is contained in:
parent
39b8c83ba6
commit
8adad0654a
1 changed files with 3 additions and 3 deletions
|
|
@ -34,9 +34,9 @@ func NewPTx(tx *ethchain.Transaction) *PTx {
|
||||||
}
|
}
|
||||||
|
|
||||||
type PKey struct {
|
type PKey struct {
|
||||||
Address string
|
Address string `json:"address"`
|
||||||
PrivateKey string
|
PrivateKey string `json:"privateKey"`
|
||||||
PublicKey string
|
PublicKey string `json:"publicKey"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewPKey(key *ethchain.KeyPair) *PKey {
|
func NewPKey(key *ethchain.KeyPair) *PKey {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue