question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Combine/serialize xdr and signature

See original GitHub issue

I have the below transaction AAAAANNSjN1wrdfixw+4w0zmKXvxxikg6EKMi9SW1DnNPhNjAAAAZAAAAAAAAAACAAAAAAAAAAEAAAAHdGVzdGluZwAAAAABAAAAAAAAAAkAAAAAAAAAAc0+E2MAAABA0nGC1i7CxTIJYNZKgo067Tr6JTCZTIU5Jwa2kpNMR7ayPohKVTaO53kojTn0c+NftXaogRZvz4/9etdOhDhlDQ==

and signature from ledger “s9B4TLRtoqrUgqBYh80ktdAKxoX5NHj5EkdN49ohWhU=”

how do I combine/serialize these two into a valid final tx, I tried converting the xdr string to TrasnactionEnvlope and add the signature but did not work

b64 = "AAAAANNSjN1wrdfixw+4w0zmKXvxxikg6EKMi9SW1DnNPhNjAAAAZAAAAAAAAAACAAAAAAAAAAEAAAAHdGVzdGluZwAAAAABAAAAAAAAAAkAAAAAAAAAAc0+E2MAAABA0nGC1i7CxTIJYNZKgo067Tr6JTCZTIU5Jwa2kpNMR7ayPohKVTaO53kojTn0c+NftXaogRZvz4/9etdOhDhlDQ=="
resp['signature'] = s9B4TLRtoqrUgqBYh80ktdAKxoX5NHj5EkdN49ohWhU

tx = Transaction.from_xdr_object(b64)
te = TransactionEnvelope(tx, signatures=resp['signature'])

What am I doing wrong here ? please advice

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

github_iconTop Results From Across the Web

EDR, XDR and AIR — The Basics (and updated Microsoft ...
Traditional protection solutions like AV (Anti-Virus) are install-to-disk and signature-based (hash) detection solutions. The anti-virus signatures (but ...
Read more >
EDR vs XDR - Palo Alto Networks
EDR provides detection and response for endpoints while XDR provides more robust capabilities and extends protection, detection and response beyond the ...
Read more >
Leveraging the X in XDR: Correlating Across Multiple Sources ...
One good way to spot pseudo-XDR offerings is to ask the provider if the tool has the ability to ingest and analyze all...
Read more >
Understanding MDR, EDR, EPP, and XDR - Netsurion
HomeInsights Articles Understanding MDR, EDR, EPP, and XDR ... or zero-day attacks, or even fileless attacks that don't leave signature-based footprints.
Read more >
Extended detection and response (XDR) - A next-generation ...
XDR is a next-generation evolution of Endpoint Detection and Response (EDR). By correlating the telemetry data from EDR shared among.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found