Skip to content

[Java/Kotlin] AnySigner.signJSON Always return empty string #3826

Answered by satoshiotomakan
ImL1s asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @ImL1s, AnySigner.signJSON has a completely different format. It takes a Tron.Proto.SigningInput Protobuf represented as a JSON:
https://chromium.googlesource.com/external/github.com/google/protobuf/+/HEAD/src/google/protobuf/util/json_util.h#31

At this moment, WalletCore does not provide functionality to process the Rango TX format, so you need to manually convert the given JSON to a Tron.Proto.SigningInput:

// Input data necessary to create a signed transaction.
message SigningInput {
// Transaction.
Transaction transaction = 1;
// The secret private key used for signing (32 bytes).
b…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ImL1s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants