aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/crypto.go
diff options
context:
space:
mode:
authorGustav Simonsson <gustav.simonsson@gmail.com>2015-05-11 02:30:02 +0800
committerGustav Simonsson <gustav.simonsson@gmail.com>2015-05-12 23:22:17 +0800
commit2c1b0ff17e020f300ed9d5a5a244f59b4febfe66 (patch)
treecafa9b03743b00d4ef902ddf3effc1734e885a89 /crypto/crypto.go
parentfe9e95a3fd6275fe2740261d3d110c13de4aa0ce (diff)
downloadgo-tangerine-2c1b0ff17e020f300ed9d5a5a244f59b4febfe66.tar
go-tangerine-2c1b0ff17e020f300ed9d5a5a244f59b4febfe66.tar.gz
go-tangerine-2c1b0ff17e020f300ed9d5a5a244f59b4febfe66.tar.bz2
go-tangerine-2c1b0ff17e020f300ed9d5a5a244f59b4febfe66.tar.lz
go-tangerine-2c1b0ff17e020f300ed9d5a5a244f59b4febfe66.tar.xz
go-tangerine-2c1b0ff17e020f300ed9d5a5a244f59b4febfe66.tar.zst
go-tangerine-2c1b0ff17e020f300ed9d5a5a244f59b4febfe66.zip
Update key store to new spec but keep address field for now
* Also fix address types post-rebase
Diffstat (limited to 'crypto/crypto.go')
-rw-r--r--crypto/crypto.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/crypto.go b/crypto/crypto.go
index 2b1628124..ff817b0fa 100644
--- a/crypto/crypto.go
+++ b/crypto/crypto.go
@@ -185,7 +185,7 @@ func ImportBlockTestKey(privKeyBytes []byte) error {
ecKey := ToECDSA(privKeyBytes)
key := &Key{
Id: uuid.NewRandom(),
- Address: PubkeyToAddress(ecKey.PublicKey),
+ Address: common.BytesToAddress(PubkeyToAddress(ecKey.PublicKey)),
PrivateKey: ecKey,
}
err := ks.StoreKey(key, "")