Skip to content

Commit

Permalink
chore(LibIpaMultiPoint): switch to LE
Browse files Browse the repository at this point in the history
Signed-off-by: Dragan Pilipovic <[email protected]>
  • Loading branch information
dragan2234 committed Jan 29, 2024
1 parent 949bfc2 commit 0c6473c
Showing 1 changed file with 2 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,22 +37,12 @@ public class PedersenHasher implements Hasher {
*/
@Override
public Bytes32 commit(Bytes32[] inputs) {
Bytes32[] rev = new Bytes32[inputs.length];
for (int i = 0; i < inputs.length; ++i) {
rev[i] = (Bytes32) inputs[i].reverse();
}
Bytes input_serialized = Bytes.concatenate(rev);
return (Bytes32) Bytes32.wrap(LibIpaMultipoint.commit(input_serialized.toArray())).reverse();
return Bytes32.wrap(LibIpaMultipoint.commit(Bytes.concatenate(inputs).toArray()));
}

@Override
public Bytes32 commitRoot(final Bytes32[] inputs) {
Bytes32[] rev = new Bytes32[inputs.length];
for (int i = 0; i < inputs.length; ++i) {
rev[i] = (Bytes32) inputs[i].reverse();
}
Bytes input_serialized = Bytes.concatenate(rev);
return Bytes32.wrap(LibIpaMultipoint.commitRoot(input_serialized.toArray()));
return Bytes32.wrap(LibIpaMultipoint.commitRoot(Bytes.concatenate(inputs).toArray()));
}

/**
Expand Down

0 comments on commit 0c6473c

Please sign in to comment.