Skip to content
This repository has been archived by the owner on Dec 23, 2024. It is now read-only.

Commit

Permalink
fix: add missing ExpandedFheCiphertextSize[FheUint160]
Browse files Browse the repository at this point in the history
  • Loading branch information
leventdem committed Apr 5, 2024
1 parent 1b3e576 commit cc9b1f6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fhevm/tfhe/tfhe_key_management.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ func initCiphertextSizes() {
ExpandedFheCiphertextSize[FheUint16] = uint(len(new(TfheCiphertext).TrivialEncrypt(*big.NewInt(0), FheUint16).Serialize()))
ExpandedFheCiphertextSize[FheUint32] = uint(len(new(TfheCiphertext).TrivialEncrypt(*big.NewInt(0), FheUint32).Serialize()))
ExpandedFheCiphertextSize[FheUint64] = uint(len(new(TfheCiphertext).TrivialEncrypt(*big.NewInt(0), FheUint64).Serialize()))
ExpandedFheCiphertextSize[FheUint160] = uint(len(new(TfheCiphertext).TrivialEncrypt(*big.NewInt(0), FheUint160).Serialize()))

compactFheCiphertextSize[FheBool] = uint(len(EncryptAndSerializeCompact(0, FheBool)))
compactFheCiphertextSize[FheUint4] = uint(len(EncryptAndSerializeCompact(0, FheUint4)))
Expand Down

0 comments on commit cc9b1f6

Please sign in to comment.