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

Changing smartcontracts #6

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

iquerejeta
Copy link
Contributor

Generic smart contract with size 512 as input.

  • The policies are chosen on a separate smart contract (Policy.sol)
  • Then, Themis.sol calculates the size of the policy vector, and evaluates the inner product only over these values
  • Slightly modified some of the structure of Themis.sol and removed unused functions

Idea is to merge with master, and then unify the test files. The example to run for testing is proof_correct_decryption.rs.

@iquerejeta iquerejeta requested a review from gpestana July 7, 2020 11:10
@iquerejeta iquerejeta self-assigned this Jul 7, 2020
Taking the policy from the policy smart contract, which defines
a dynamic sized policy.

The inner product loop iterates over the size of the policy, and
not the input vector (allowing us to work with a smart contract
with size 512)
@iquerejeta iquerejeta force-pushed the changing_smartcontracts branch from 847a6ec to 3c4a58a Compare July 7, 2020 11:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant