aboutsummaryrefslogtreecommitdiffstats
path: root/core/crypto/interfaces.go
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2018-09-26 17:13:37 +0800
committerGitHub <noreply@github.com>2018-09-26 17:13:37 +0800
commit7450e6ba7f7299d03b04a7e2a9b3bc5911b94cfe (patch)
tree41b823a05f81615558a37567dab85e2958b59329 /core/crypto/interfaces.go
parent663817d3e0d5a3c28cb0c5e378a533e242af5fdf (diff)
downloaddexon-consensus-7450e6ba7f7299d03b04a7e2a9b3bc5911b94cfe.tar
dexon-consensus-7450e6ba7f7299d03b04a7e2a9b3bc5911b94cfe.tar.gz
dexon-consensus-7450e6ba7f7299d03b04a7e2a9b3bc5911b94cfe.tar.bz2
dexon-consensus-7450e6ba7f7299d03b04a7e2a9b3bc5911b94cfe.tar.lz
dexon-consensus-7450e6ba7f7299d03b04a7e2a9b3bc5911b94cfe.tar.xz
dexon-consensus-7450e6ba7f7299d03b04a7e2a9b3bc5911b94cfe.tar.zst
dexon-consensus-7450e6ba7f7299d03b04a7e2a9b3bc5911b94cfe.zip
crypto: sigtopub to crypto package. remove SigToPubFn (#141)
Diffstat (limited to 'core/crypto/interfaces.go')
-rw-r--r--core/crypto/interfaces.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/crypto/interfaces.go b/core/crypto/interfaces.go
index ac2754d..fb1dcbe 100644
--- a/core/crypto/interfaces.go
+++ b/core/crypto/interfaces.go
@@ -22,7 +22,10 @@ import (
)
// Signature is the basic signature type in DEXON.
-type Signature []byte
+type Signature struct {
+ Type string
+ Signature []byte
+}
// PrivateKey describes the asymmetric cryptography interface that interacts
// with the private key.