Package dk.hyperdivision.multisig_hmac
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 Summary
-
Method Summary
Modifier and Type Method Description static byte[]xorBytes(byte[] a, byte[] b, int BYTES)Xor two byte arrays
-
Constructor Details
-
Combine
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 signaturesBYTES- - 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 arrayb- - second byte arrayBYTES- - length of combined array- Returns:
- result of xor'ing a and b
-