SecretSharing
public protocol SecretSharing
Undocumented
-
splitSecret splits the data to shares
Declaration
Swift
func splitSecret(data: Data) throws -> [Data]
Parameters
data
data need to share
Return Value
Array of shared data
-
combineSecret will combine shares back to actuall data
Declaration
Swift
func combineSecret(data: [Data]) throws -> Data
Parameters
data
array of shared data to combile
Return Value
data after combinning the shared data