diff --git a/src/main/java/org/tron/core/capsule/TransactionCapsule.java b/src/main/java/org/tron/core/capsule/TransactionCapsule.java index 6ad69ad614d..3bf6ca21b33 100755 --- a/src/main/java/org/tron/core/capsule/TransactionCapsule.java +++ b/src/main/java/org/tron/core/capsule/TransactionCapsule.java @@ -221,11 +221,10 @@ public boolean checkBalance(byte[] address, byte[] to, long amount, long balance return true; } - @Deprecated public void sign(byte[] privateKey) { ECKey ecKey = ECKey.fromPrivate(privateKey); ECDSASignature signature = ecKey.sign(getRawHash().getBytes()); - ByteString sig = ByteString.copyFrom(signature.toBase64().getBytes()); + ByteString sig = ByteString.copyFrom(signature.toByteArray()); this.transaction = this.transaction.toBuilder().addSignature(sig).build(); }