diff --git a/packages/binary/drng/subtypes/collectiveBeacon/collective_beacon.go b/packages/binary/drng/subtypes/collectiveBeacon/collective_beacon.go index 971e5559632d789ebbd61eaa4f5f68a5df19bc96..f5f3a560c0cae831d7e8f521000140a9e971c92d 100644 --- a/packages/binary/drng/subtypes/collectiveBeacon/collective_beacon.go +++ b/packages/binary/drng/subtypes/collectiveBeacon/collective_beacon.go @@ -1,6 +1,7 @@ package collectiveBeacon import ( + "bytes" "crypto/sha512" "errors" @@ -47,6 +48,10 @@ func VerifyCollectiveBeacon(state *state.State, data *events.CollectiveBeaconEve return err } + if !bytes.Equal(data.Dpk, state.Committee().DistributedPK) { + return errors.New("Distributed Public Key does not match") + } + if err := verifySignature(data); err != nil { return err }