KNThresholdSchemeFacilitator

public class KNThresholdSchemeFacilitator : SecretSharing

Undocumented

  • Undocumented

    Declaration

    Swift

    public init(threshold: Int = 2, shares: Int = 2)
  • splitSecret splits the data to shares

    Declaration

    Swift

    public func splitSecret(data: Data) throws -> [Data]

    Parameters

    data

    data need to share

  • combineSecret will combine shares back to actuall data

    Declaration

    Swift

    public func combineSecret(data: [Data]) throws -> Data