Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get pk precompile #23

Merged
merged 9 commits into from
Dec 18, 2023
Merged

Get pk precompile #23

merged 9 commits into from
Dec 18, 2023

Conversation

eshelB
Copy link
Contributor

@eshelB eshelB commented Dec 14, 2023

Added getPublicKey function to the Fheops precompiled contract (We may decide that it needs a separate contract in the future but for now this was the easy implementation)
Was needed to be able to get public key without the need for custom RPC methods (which some providers like metamask don't allow).
nitro PR: https://github.com/FhenixProtocol/nitro/pull/22
https://fhenix.monday.com/boards/1216577959/views/4451803/pulses/1343322846

// Return a memory with a layout that matches the `bytes` EVM type, namely:
// - 32 byte integer in big-endian order as length
// - the actual bytes in the `bytes` value
func toEVMBytes(input []byte) []byte {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove and rerun make gen again please
it will change the FheOS.go in nitro so please also commit it.

@liorbond liorbond requested review from liorbond and removed request for liorbond December 18, 2023 09:23
@eshelB eshelB merged commit 1c85aa6 into master Dec 18, 2023
1 check failed
@eshelB eshelB deleted the get-pk-precompile branch December 18, 2023 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants