Client SDK Version 1.8.0
Ionic Security client SDK for Python users
Public Member Functions | Public Attributes | List of all members
ionicsdk.secretshare.SecretShareBucket Class Reference

Secret Share bucket implementation. More...

Inheritance diagram for ionicsdk.secretshare.SecretShareBucket:

Public Member Functions

def __init__ (self)
 Base class constructor for custom Secret Share Bucket.
 
def SetThreshold (self, threshold)
 Sets the threshold value for the bucket. More...
 

Public Attributes

 threshold
 (int) Number of bucket list key values that need to match in order to decrypt a Secret Share
 

Detailed Description

Secret Share bucket implementation.

This class is a list of keys contained in the SecretShareData. The buckets group the key-value data and assign a threshold count - the number of keys in each bucket that must match in order to decrypt.

Access the keys just like any other list in Python. Use SetThreshold to assign the threshold value.

A list of this object should be returned from the GetBuckets() function of a SecretShareData object.

Member Function Documentation

◆ SetThreshold()

def ionicsdk.secretshare.SecretShareBucket.SetThreshold (   self,
  threshold 
)

Sets the threshold value for the bucket.

Parameters
threshold(int): The threshold to use
Returns
None

The documentation for this class was generated from the following file: