diff options
Diffstat (limited to 'core/authenticator.go')
-rw-r--r-- | core/authenticator.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/authenticator.go b/core/authenticator.go index de22c1f..97b62d6 100644 --- a/core/authenticator.go +++ b/core/authenticator.go @@ -101,6 +101,14 @@ func (au *Authenticator) SignDKGPartialSignature( return } +// SignDKGFinalize signs a DKG finalize message. +func (au *Authenticator) SignDKGFinalize( + final *types.DKGFinalize) (err error) { + final.ProposerID = au.proposerID + final.Signature, err = au.prvKey.Sign(hashDKGFinalize(final)) + return +} + // VerifyBlock verifies the signature of types.Block. func (au *Authenticator) VerifyBlock(b *types.Block) (err error) { hash, err := hashBlock(b) |