FhenixProtocol / fhenix.js

The JavaScript SDK for Fhenix
https://fhenixjs.fhenix.zone/
Other
2 stars 1 forks source link

Security zones #32

Open eshelB opened 1 week ago

eshelB commented 1 week ago

Note: will probably not pass CI as it needs the new nitro for the new interface of getting the public key.

Lets users specify the security zone they want the number to be encrypted on. e.g.

fhenixclient.encrypt_uint8(3, 1); // this specifies that the security zone is 1

Still didn't add tests here, but I did test this from the fheos repo goes with fheos PR: https://github.com/FhenixProtocol/fheos/pull/115