From 93ad7854d74cce65578f3402233b495264c0c8e6 Mon Sep 17 00:00:00 2001 From: xuyi Date: Thu, 1 Feb 2024 09:07:05 +0800 Subject: [PATCH] add decode to EcPoint --- src/main/java/com/archer/math/EcPoint.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/archer/math/EcPoint.java b/src/main/java/com/archer/math/EcPoint.java index b5ad291..cc7086f 100644 --- a/src/main/java/com/archer/math/EcPoint.java +++ b/src/main/java/com/archer/math/EcPoint.java @@ -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 {