Packages

package shamir

Contains the core classes needed for sharing or merging of secrets.

See also

Shamir's Keystore

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. shamir
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. class NewtonInterpolation extends Tracing

    Implements Newtons interpolation algorithm.

    Implements Newtons interpolation algorithm. All calculations will be carried out by finite field algebra.

  2. class NewtonPolynomial extends Tracing

    Defines a Newton Polynomial.

  3. class Polynomial extends Tracing

    Defines a polynomial in its canonical form.

  4. class SecretMerging extends Tracing

    Recovers the original secret bytes by combining the given shares.

  5. class SecretSharing extends Tracing

    A secret sharing sheme.

Value Members

  1. val CERTAINTY: Int

    defines the certainty of a number being prime, that is between 2^64 primes computed by the underlying algorithm there is one false positive.

  2. def bigIntToBytes(s: BigInt): IndexedSeq[Byte]

    Converts the given BigInt number into bytes by discarding the leading byte.

    Converts the given BigInt number into bytes by discarding the leading byte.

    s

    the to be converted BigInt number

    returns

    the resulting bytes

  3. def bytes2BigInt(bytes: IndexedSeq[Byte]): BigInt

    Converts the given bytes into a non-negative BigInt number by padding 0x7F upfront.

    Converts the given bytes into a non-negative BigInt number by padding 0x7F upfront.

    bytes

    the to be converted bytes

    returns

    the resulting non-negative BigInt number

  4. def charSequenceToByteArray(charSequence: CharSequence): Array[Byte]

    Encodes a given character sequence as bytes ba applying UTF-8 encoding.

    Encodes a given character sequence as bytes ba applying UTF-8 encoding.

    charSequence

    the to be encoded characters

    returns

    the encoded character sequence

  5. def pairWiseDifferent[T](items: Iterable[T]): Boolean

    Checks if any two items within the Iterable are identical.

    Checks if any two items within the Iterable are identical.

    items

    an Iterable of some items

    returns

    true if no pair of identical items has been found

  6. object SecretMerging

    This object provides some operations to create SecretMerging instances.

Inherited from AnyRef

Inherited from Any

Ungrouped