You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@lrettig
hello,now can i use the ledger app code to sign my transaction?
when i signing , the source code need the message header ,but the spacemesh example code not contains that.
the ledger app code path: app-spacemesh->src->signMessage.c
if (parse_message_header(&parser, header) != 0) {
// This is not a valid Solana message
THROW(ApduReplySolanaInvalidMessage);
}
int parse_message_header(Parser* parser, MessageHeader* header) {
BAIL_IF(parse_version(parser, header));
BAIL_IF(parse_pubkeys(parser, &header->pubkeys_header, &header->pubkeys));
BAIL_IF(parse_blockhash(parser, &header->blockhash));
BAIL_IF(parse_length(parser, &header->instructions_length));
return 0;
}
the spacemesh code path: go-spacemesh->genvm->sdk->wallet->tx.go
Hi @yantao1995 thanks for the question. Short answer: you can't, not yet anyway. At the moment this app is sort of a "proof of concept" that lets you generate keypairs and nothing else. When the ledger app was developed we hadn't even finalized our transaction format. We hope to be able to add support for this soon.
lrettig
changed the title
how can i use the ledger app code to sign my transaction?
Add transaction signing
Jan 4, 2024
@lrettig
hello,now can i use the ledger app code to sign my transaction?
when i signing , the source code need the message header ,but the spacemesh example code not contains that.
the ledger app code path: app-spacemesh->src->signMessage.c
the spacemesh code path: go-spacemesh->genvm->sdk->wallet->tx.go
above all , It doesn't seem to match. the ledger app code only can used on the tx of solana rule ,but failed to submit for spacemesh node.
ps : i try sign tx by solana rule, the ledger app code working success.
The text was updated successfully, but these errors were encountered: