de.christofreichardt.scala.shamir.SecretMerging
See theSecretMerging companion object
class SecretMerging(val sharePoints: IndexedSeq[(BigInt, BigInt)], val prime: BigInt) extends Tracing
Recovers the original secret bytes by combining the given shares.
Value parameters
-
prime
-
the prime modulus
-
sharePoints
-
the shares
Attributes
-
Constructor
-
Creates a immutable SecretMerging instance.
-
Companion
-
object
-
Graph
-
-
Supertypes
-
class Object
trait Matchable
class Any
Members list
Computes a character sequence from the recovered secret bytes by applying UTF-8 encoding.
Computes a character sequence from the recovered secret bytes by applying UTF-8 encoding.
Attributes
-
Returns
-
the decoded password
Returns the present tracer for this object.
Returns the present tracer for this object.
Attributes
-
Returns
-
the current tracer, by default the NullTracer
-
Inherited from:
-
Tracing
Custom control structure for tracing of embraced code blocks.
Custom control structure for tracing of embraced code blocks.
Type parameters
-
T
-
the actual type of the embraced code block
Value parameters
-
block
-
the embraced code block
-
callee
-
the call site
-
method
-
denotes the method signature
-
resultType
-
denotes the return type
Attributes
-
Returns
-
returns whatever block returns
-
Inherited from:
-
Tracing
Newtons interpolation method
Newtons interpolation method
Attributes
the (recovered) encoded secret
the (recovered) encoded secret
Attributes
the actual (recovered) secret bytes
the actual (recovered) secret bytes
Attributes