diff options
Diffstat (limited to 'core/authenticator.go')
-rw-r--r-- | core/authenticator.go | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/core/authenticator.go b/core/authenticator.go index 91477c5..de22c1f 100644 --- a/core/authenticator.go +++ b/core/authenticator.go @@ -69,27 +69,6 @@ func (au *Authenticator) SignCRS(b *types.Block, crs common.Hash) (err error) { return } -// SignAsWitnessAck create a witness ack from a confirmed block. -func (au *Authenticator) SignAsWitnessAck( - b *types.Block) (wAck *types.WitnessAck, err error) { - - hash, err := hashWitness(b) - if err != nil { - return - } - sig, err := au.prvKey.Sign(hash) - if err != nil { - return - } - wAck = &types.WitnessAck{ - ProposerID: au.proposerID, - WitnessBlockHash: b.Hash, - Signature: sig, - Hash: hash, - } - return -} - // SignDKGComplaint signs a DKG complaint. func (au *Authenticator) SignDKGComplaint( complaint *types.DKGComplaint) (err error) { |