Skip to content

Commit

Permalink
Fix out of bounds error
Browse files Browse the repository at this point in the history
  • Loading branch information
david-zk committed Jan 5, 2024
1 parent 31f903f commit a741912
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions fhevm/precompiles.go
Original file line number Diff line number Diff line change
Expand Up @@ -2195,8 +2195,6 @@ func decryptRun(environment EVMEnvironment, caller common.Address, addr common.A
fheType = kms.FheType_Euint32
}

pubKey := input[32:64]

// TODO: generate merkle proof for some data
proof := &kms.Proof{
Height: 4,
Expand All @@ -2206,7 +2204,7 @@ func decryptRun(environment EVMEnvironment, caller common.Address, addr common.A
decryptionRequest := &kms.DecryptionRequest{
FheType: fheType,
Ciphertext: ct.ciphertext.serialization,
Request: pubKey, // TODO: change according to the structure of `Request`
Request: []byte{}, // TODO: change according to the structure of `Request`
Proof: proof,
}

Expand Down

0 comments on commit a741912

Please sign in to comment.