Giter Club home page Giter Club logo

stellarnet's People

Contributors

ddworken avatar joshblum avatar maxtaco avatar meithecatte avatar mlsteele avatar patrickxb avatar strib avatar xgess avatar zapu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

stellarnet's Issues

request parameter "xdr" is invalid

I'm trying to sign a transaction with KeyBase client SEP-7 handler, and I get request parameter "xdr" is invalid, but Stellar laboratory decodes this transaction successfully:

AAAAAgAAAACfPd+FSFlAx6BAfyJSF/nTy99q5NqNJ/ZB2HYUw2RilAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAEkxvZ2dpbmcgaW50byBWZWNoZQAAAAAAAQAAAAAAAAAKAAAABW5vbmNlAAAAAAAAAQAAABhvV3ZzemtVUVJZZmNnbVg4WFRRMXJLeDUAAAAAAAAAAA==

What's wrong? Is your vendored XDR library up-to-date?

SEP7 Stellar URI should support "seqNum" replace param.

Currently when using replacements in SEP7 Stellar URIs, it appears that Keybase has the ability to replace source accounts in transactions. However, that is not very useful if it does not also replace the sequence number. Unfortunately adding the "seqNum" replace param results in a "Sorry you cannot use this replace param" error.

Here is how I tested this:

  1. Created a Stellar URI sending 0.01 XLM to my own account, with a different source account, and the sequence number of that source account. This Stellar URI specifies that sourceAccount should be replaced.

web+stellar:tx?xdr=AAAAAO6JQTfmXnAUTbjZ%2FQ6kMiwYQK96tab9CrOkRDhgleCvAAAAZAEpCUIAAAAEAAAAAAAAAAAAAAABAAAAAAAAAAEAAAAARQ8lgldVTeCUV%2BoysRUOl0J13Iuxv%2Fa1l%2FDuWahtdwwAAAAAAAAAAAABhqAAAAAAAAAAAA%3D%3D&origin_domain=test.stellarguard.me&replace=sourceAccount%3ASRC%3BSRC%3Athe+source+account&signature=hYKXcxDPESUHdbJP9aCWMTnYNP0MUJsRnddWRQ1H15r8%2BUS86V5LRQo3yi4Ft771ClRphv8Q%2BbiA8sZ1xyVkCQ%3D%3D

  1. When trying to submit this, I get a "Stellar network error" message.

  2. Created a Stellar URI that was the same as before, but used the correct sequence number for my own account (still used the other account's source account).

web+stellar:tx?xdr=AAAAAO6JQTfmXnAUTbjZ%2FQ6kMiwYQK96tab9CrOkRDhgleCvAAAAZAFAdlYAAAAcAAAAAAAAAAAAAAABAAAAAAAAAAEAAAAARQ8lgldVTeCUV%2BoysRUOl0J13Iuxv%2Fa1l%2FDuWahtdwwAAAAAAAAAAAABhqAAAAAAAAAAAA%3D%3D&origin_domain=test.stellarguard.me&replace=sourceAccount%3ASRC%3BSRC%3Athe+source+account&signature=gbcazRsdRuJi2A085kkK8R%2F66LPaV%2B%2FTaFpaiG%2F%2FdfDPtFTJxn2Nd2xO6Ssxjpy3esOr3lr3eUe5tCWOQ%2FkNDA%3D%3D

  1. Clicking this succeeded, indicating that it replaced the source account, but left the sequence number.

Presently, it appears that source account replacements are kind of worthless since you have to have set the correct sequence number ahead of time. Supporting the seqNum replacement param would alleviate this and make this so much more useful.


Note: I have a playground for Stellar URIs that you can try here (to make the link clickable at least): https://stellarguard.github.io/stellar-uri/demo

SEP-7 callback is ignored

Uri: web+stellar:tx?xdr=AAAAAJ8934VIWUDHoEB%2FIlIX%2BdPL32rk2o0n9kHYdhTDZGKUAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAASTG9nZ2luZyBpbnRvIFZlY2hlAAAAAAABAAAAAAAAAAoAAAAFbm9uY2UAAAAAAAABAAAAGHpRTzM1bHhheFhXbkJNSWRYOHNsQm51YwAAAAAAAAAA&callback=http%3A%2F%2Flocalhost%3A3000%2Fauth%2Fpage%2Fstellar

Result:
stellar network error
2022-11-25_18-23-54

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.