Skip to content

Commit

Permalink
add decode to EcPoint
Browse files Browse the repository at this point in the history
  • Loading branch information
xuyi committed Feb 1, 2024
1 parent 03b18ab commit 93ad785
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/archer/math/EcPoint.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public static EcPoint decode(byte[] in) {
throw new IllegalArgumentException("can not decode input bytes to EcPoint");
}

return new EcPoint(Arrays.copyOfRange(in, off, 32), Arrays.copyOfRange(in, off+32, in.length));
return new EcPoint(Arrays.copyOfRange(in, off, off+32), Arrays.copyOfRange(in, off+32, in.length));
}

static {
Expand Down

0 comments on commit 93ad785

Please sign in to comment.