SecretMerging

de.christofreichardt.scala.shamir.SecretMerging
See theSecretMerging companion class
object SecretMerging

This object provides some operations to create SecretMerging instances.

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def apply(sharePoints: IndexedSeq[(BigInt, BigInt)], prime: BigInt): SecretMerging

Directly calls the SecretMerging primary constructor.

Directly calls the SecretMerging primary constructor.

Value parameters

prime

the prime modulus

sharePoints

the shares

Attributes

Returns

the immutable SecretMerging instance

def apply(path: Path): SecretMerging

Evaluates a JSON file containing shares needed to recover the secret.

Evaluates a JSON file containing shares needed to recover the secret.

Value parameters

path

the path to the JSON file

Attributes

Returns

the immutable SecretMerging instance

def apply(paths: Iterable[Path]): SecretMerging

Combines several JSON files containing shares needed to recover the secret.

Combines several JSON files containing shares needed to recover the secret.

Value parameters

paths

the paths to the JSON files

Attributes

Returns

the immutable SecretMerging instance

def apply(paths: Array[Path]): SecretMerging

Combines several JSON files containing shares needed to recover the secret.

Combines several JSON files containing shares needed to recover the secret.

Value parameters

paths

the paths to the JSON files

Attributes

Returns

the immutable SecretMerging instance

def apply(slices: JsonArray): SecretMerging

Combines JsonObjects each containing a slice of shares needed to recover the secret.

Combines JsonObjects each containing a slice of shares needed to recover the secret.

Value parameters

slices

the JsonArray containing the slices

Attributes

Returns

the immutable SecretMerging instance