aboutsummaryrefslogtreecommitdiffstats
path: root/core/crypto.go
diff options
context:
space:
mode:
authorMission Liao <mission.liao@dexon.org>2018-09-20 09:09:37 +0800
committerGitHub <noreply@github.com>2018-09-20 09:09:37 +0800
commit421d72b2d796195178104a0eb1dedf319ba8664c (patch)
treef32f15c167989905494eca1891c3240b80dac1d6 /core/crypto.go
parent37f117d35c6617e1944d45e001e03813a6a278ed (diff)
downloadtangerine-consensus-421d72b2d796195178104a0eb1dedf319ba8664c.tar
tangerine-consensus-421d72b2d796195178104a0eb1dedf319ba8664c.tar.gz
tangerine-consensus-421d72b2d796195178104a0eb1dedf319ba8664c.tar.bz2
tangerine-consensus-421d72b2d796195178104a0eb1dedf319ba8664c.tar.lz
tangerine-consensus-421d72b2d796195178104a0eb1dedf319ba8664c.tar.xz
tangerine-consensus-421d72b2d796195178104a0eb1dedf319ba8664c.tar.zst
tangerine-consensus-421d72b2d796195178104a0eb1dedf319ba8664c.zip
Rename validator* to node* (#120)
Diffstat (limited to 'core/crypto.go')
-rw-r--r--core/crypto.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/core/crypto.go b/core/crypto.go
index 707a2b9..e68d7cc 100644
--- a/core/crypto.go
+++ b/core/crypto.go
@@ -103,7 +103,7 @@ func verifyVoteSignature(vote *types.Vote, sigToPub SigToPubFn) (bool, error) {
if err != nil {
return false, err
}
- if vote.ProposerID != types.NewValidatorID(pubKey) {
+ if vote.ProposerID != types.NewNodeID(pubKey) {
return false, nil
}
return true, nil
@@ -121,7 +121,7 @@ func verifyCRSSignature(block *types.Block, crs common.Hash, sigToPub SigToPubFn
if err != nil {
return false, err
}
- if block.ProposerID != types.NewValidatorID(pubKey) {
+ if block.ProposerID != types.NewNodeID(pubKey) {
return false, nil
}
return true, nil
@@ -162,7 +162,7 @@ func verifyDKGPrivateShareSignature(
if err != nil {
return false, err
}
- if prvShare.ProposerID != types.NewValidatorID(pubKey) {
+ if prvShare.ProposerID != types.NewNodeID(pubKey) {
return false, nil
}
return true, nil
@@ -187,7 +187,7 @@ func verifyDKGMasterPublicKeySignature(
if err != nil {
return false, err
}
- if mpk.ProposerID != types.NewValidatorID(pubKey) {
+ if mpk.ProposerID != types.NewNodeID(pubKey) {
return false, nil
}
return true, nil
@@ -213,7 +213,7 @@ func verifyDKGComplaintSignature(
if err != nil {
return false, err
}
- if complaint.ProposerID != types.NewValidatorID(pubKey) {
+ if complaint.ProposerID != types.NewNodeID(pubKey) {
return false, nil
}
return true, nil
@@ -237,7 +237,7 @@ func verifyDKGPartialSignatureSignature(
if err != nil {
return false, err
}
- if psig.ProposerID != types.NewValidatorID(pubKey) {
+ if psig.ProposerID != types.NewNodeID(pubKey) {
return false, nil
}
return true, nil