secretutil¶
Contains all the auxillary functions to do linear secret sharing (LSS) over an access structure. Mainly, we represent the access structure as a binary tree. This could also support matrices for representing access structures.
- class secretutil.SecretUtil(groupObj, verbose=True)[source]¶
Bases:
objectcalculate shares from given secret and returns a dict as {attribute:shares} pairs
calculate shares from given secret and returns a list of shares.