aboutsummaryrefslogtreecommitdiffstats
path: root/simulation/marshaller.go
diff options
context:
space:
mode:
Diffstat (limited to 'simulation/marshaller.go')
-rw-r--r--simulation/marshaller.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/simulation/marshaller.go b/simulation/marshaller.go
index 08d67a9..f2d17af 100644
--- a/simulation/marshaller.go
+++ b/simulation/marshaller.go
@@ -22,7 +22,6 @@ import (
"fmt"
"github.com/dexon-foundation/dexon-consensus-core/core/types"
- "github.com/dexon-foundation/dexon-consensus-core/crypto/dkg"
)
// jsonMarshaller implements test.Marshaller to marshal simulation related
@@ -77,9 +76,7 @@ func (m *jsonMarshaller) Unmarshal(
}
msg = privateShare
case "dkg-master-public-key":
- masterPublicKey := &types.DKGMasterPublicKey{
- PublicKeyShares: *dkg.NewEmptyPublicKeyShares(),
- }
+ masterPublicKey := types.NewDKGMasterPublicKey()
if err = json.Unmarshal(payload, masterPublicKey); err != nil {
break
}