Class Combine

java.lang.Object
dk.hyperdivision.multisig_hmac.Combine

public class Combine
extends Object
Combine combines a list of signatures which have all been signed independently into one signature
Author:
Amalie Due Jensen
  • Constructor Details

    • Combine

      public Combine​(List<Sign> Signatures, int BYTES)
      Constructs and initializes a combined signature. Only include each signature once, otherwise they will cancel out. Signatures can be combined in any order.
      Parameters:
      Signatures - - list of signatures
      BYTES - - length of combined signature
  • Method Details

    • xorBytes

      public static byte[] xorBytes​(byte[] a, byte[] b, int BYTES)
      Xor two byte arrays
      Parameters:
      a - - first byte array
      b - - second byte array
      BYTES - - length of combined array
      Returns:
      result of xor'ing a and b