aboutsummaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2018-08-13 15:13:41 +0800
committerGitHub <noreply@github.com>2018-08-13 15:13:41 +0800
commita8ebf501e54406c7449f71dba0c9af696bbc4e21 (patch)
tree37ae1a53769d6f7be82ed576b1fd65a476c11d17 /crypto
parent63c76e56169b6f14ef049490392a1b3b414f73c6 (diff)
downloaddexon-consensus-a8ebf501e54406c7449f71dba0c9af696bbc4e21.tar
dexon-consensus-a8ebf501e54406c7449f71dba0c9af696bbc4e21.tar.gz
dexon-consensus-a8ebf501e54406c7449f71dba0c9af696bbc4e21.tar.bz2
dexon-consensus-a8ebf501e54406c7449f71dba0c9af696bbc4e21.tar.lz
dexon-consensus-a8ebf501e54406c7449f71dba0c9af696bbc4e21.tar.xz
dexon-consensus-a8ebf501e54406c7449f71dba0c9af696bbc4e21.tar.zst
dexon-consensus-a8ebf501e54406c7449f71dba0c9af696bbc4e21.zip
core: Sign block in Consensus.PrepareBlock. (#50)
Diffstat (limited to 'crypto')
-rw-r--r--crypto/eth/eth.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/eth/eth.go b/crypto/eth/eth.go
index 975d8a8..c3c5a7c 100644
--- a/crypto/eth/eth.go
+++ b/crypto/eth/eth.go
@@ -111,7 +111,7 @@ func (pub PublicKey) Bytes() []byte {
// SigToPub returns the PublicKey that created the given signature.
func SigToPub(
- hash common.Hash, signature crypto.Signature) (PublicKey, error) {
+ hash common.Hash, signature crypto.Signature) (crypto.PublicKey, error) {
key, err := ethcrypto.SigToPub(hash[:], signature[:])
if err != nil {
return PublicKey{}, err