diff --git a/pkg/signer/preconfencryptor/encryptor.go b/pkg/signer/preconfencryptor/encryptor.go index b1987a3..e88a27a 100644 --- a/pkg/signer/preconfencryptor/encryptor.go +++ b/pkg/signer/preconfencryptor/encryptor.go @@ -123,8 +123,6 @@ func (e *encryptor) ConstructEncryptedPreConfirmation(bid *preconfpb.Bid) (*prec preConfirmation := &preconfpb.PreConfirmation{ Bid: bid, - Digest: bid.Digest, - Signature: bid.Signature, SharedSecret: sharedSecredProviderSk, ProviderAddress: providerKK.GetAddress().Bytes(), } @@ -143,6 +141,9 @@ func (e *encryptor) ConstructEncryptedPreConfirmation(bid *preconfpb.Bid) (*prec sig[64] += 27 // Transform V from 0/1 to 27/28 } + preConfirmation.Digest = preConfirmationHash + preConfirmation.Signature = sig + return preConfirmation, &preconfpb.EncryptedPreConfirmation{ Commitment: preConfirmationHash, Signature: sig,