Class ShamirSplitSecretShare

java.lang.Object
org.bouncycastle.crypto.threshold.ShamirSplitSecretShare
All Implemented Interfaces:
SecretShare, Encodable

public class ShamirSplitSecretShare extends Object implements SecretShare
  • Constructor Details

    • ShamirSplitSecretShare

      public ShamirSplitSecretShare(byte[] secretShare, int r)
    • ShamirSplitSecretShare

      public ShamirSplitSecretShare(byte[] secretShare)
  • Method Details

    • getEncoded

      public byte[] getEncoded() throws IOException
      Description copied from interface: Encodable
      Return a byte array representing the implementing object.
      Specified by:
      getEncoded in interface Encodable
      Returns:
      a byte array representing the encoding.
      Throws:
      IOException - if an issue arises generation the encoding.