diff --git a/chsm-common/src/main/java/com/sunyard/chsm/sdf/model/EccPubKey.java b/chsm-common/src/main/java/com/sunyard/chsm/sdf/model/EccPubKey.java index e6f1f08..d7179a4 100644 --- a/chsm-common/src/main/java/com/sunyard/chsm/sdf/model/EccPubKey.java +++ b/chsm-common/src/main/java/com/sunyard/chsm/sdf/model/EccPubKey.java @@ -6,7 +6,6 @@ import lombok.NoArgsConstructor; import org.bouncycastle.util.encoders.Hex; import org.springframework.util.Assert; -import java.nio.ByteBuffer; import java.util.Arrays; import java.util.Objects; @@ -56,11 +55,6 @@ public class EccPubKey { pubKey = Arrays.copyOfRange(pubKey, 1, pubKey.length); } else if (Objects.equals(pubKey.length, 132)) { // 00010000 - byte[] bytes = Arrays.copyOf(pubKey, 4); - System.out.println(Hex.toHexString(bytes)); - int anInt = ByteBuffer.wrap(bytes).getInt(); - System.out.println(anInt); - pubKey = Arrays.copyOfRange(pubKey, 4, pubKey.length); } Assert.isTrue(Objects.equals(pubKey.length, 64) || Objects.equals(pubKey.length, 128), "Ecc公钥数据格式错误");