Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ private void validate(String privateKey) {
throw new TronError("private key must be hex string",
TronError.ErrCode.WITNESS_INIT);
}
if (!ECKey.isValidPrivateKey(ByteArray.fromHexString(privateKey))) {
throw new TronError("Invalid ECDSA witness private key", TronError.ErrCode.WITNESS_INIT);
}
}

public void addPrivateKeys(String privateKey) {
Expand Down
Loading
Loading