OSDN Git Service

refactor
[bytom/bytom-java-sdk.git] / tx-signer / src / main / java / io / bytom / common / ExpandedPrivateKey.java
index 2a23df4..a941efa 100755 (executable)
@@ -9,7 +9,7 @@ import java.security.NoSuchAlgorithmException;
 import java.security.SignatureException;\r
 \r
 public class ExpandedPrivateKey {\r
-    public static byte[] HMacSha512(byte[] data, byte[] key)\r
+    public static byte[] hmacSha512(byte[] data, byte[] key)\r
             throws SignatureException, NoSuchAlgorithmException, InvalidKeyException {\r
         SecretKeySpec signingKey = new SecretKeySpec(key, "HmacSHA512");\r
         Mac mac = Mac.getInstance("HmacSHA512");\r
@@ -17,10 +17,10 @@ public class ExpandedPrivateKey {
         return mac.doFinal(data);\r
     }\r
 \r
-    public static byte[] ExpandedPrivateKey(byte[] data)\r
+    public static byte[] expandedPrivateKey(byte[] data)\r
             throws SignatureException, NoSuchAlgorithmException, InvalidKeyException {\r
         // "457870616e64" is "Expand" hex.\r
-        byte[] res = HMacSha512(data, Hex.decode("457870616e64"));\r
+        byte[] res = hmacSha512(data, Hex.decode("457870616e64"));\r
         for (int i = 0; i <= 31; i++) {\r
             res[i] = data[i];\r
         }\r