SecretMerging

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
trait Tracing
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def password: Array[Char]

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

Inherited methods

def getCurrentTracer(): AbstractTracer

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
def withTracer[T](resultType: String, callee: AnyRef, method: String)(block: => T): T

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

Concrete fields

Newtons interpolation method

Newtons interpolation method

Attributes

val prime: BigInt
val s: BigInt

the (recovered) encoded secret

the (recovered) encoded secret

Attributes

val secretBytes: IndexedSeq[Byte]

the actual (recovered) secret bytes

the actual (recovered) secret bytes

Attributes

val sharePoints: IndexedSeq[(BigInt, BigInt)]