0

I know how bitcoin transactions are built 4 Bytes version & 1 byte number of inputs ...etc similar to this how is stellar transaction built and signed ? Please help me find that information ? where should I start looking ?

please advice

0

Don't know in deep detail but... afaik a stellar transaction is a bunch of XDR (External Data Representation Standard) encoded data. I'm not aware of an official definition document but you can find definition files in the stellar base libraries (for example js-stellar-base or ruby-stellar-base). The transaction is Ed25519 signed and tx+signature are combined in a XDR TransactionEnvelope structure. Finally the resulting XDR chunk is usually base64 encoded for transfer.

I think it's pretty complicated to do this by hand on the lowest binary level. If you're looking for a higher level entry, the stellar laboratory is an excellent tool to build a transaction XDR string, sign a XDR string or decode a XDR string.

| improve this answer | |
  • 1
    This was the closest I got to understand transaction structure behind stellar github.com/KingHodor/Stellar-XDR Also if I decode raw xdr tx to hex everything is serialized in big endian – f4r4 Apr 10 at 6:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.