Code Monkey home page Code Monkey logo

stellar-uri's Introduction

stellar-uri

A quick proposal for a URI protocol for Stellar

#Short bakground

In order to facilitate commerce, we need an easier way to deal with transactions without having to manually enter all the details. Wen need something that works all the way from the "Pay with Stellar"-button, to the wallet.

My proposal is to look at what others are doing using URI handlers.

https://electrum.org/bitcoin_URIs.html
https://wiki.ripple.com/Ripple_URIs

The benefit of URI handlers is that it's a mechanism that is supported on all relevant platform. You click on a stellar URI, and you get transported to the wallet of your choice, no matter if you are on your phone or your desktop pc.

#Proposal

Sending currency to a user

stellar: send? address = <address> &
                dt = <destination tag> &
                amount = <amount> &
                signature = <signed hash>

Extending trust to a gateway (or other user)

stellar: trust? address = <address> &
                amount = <amount> &
                signature = <signed hash>

##Fields

Address (MANDATORY)

address = <account ID> / <federated username>

address=gaQJKTG5spdnRdDd9gwxg11DkkvHTeiad7
address=dzhambulat
[email protected]

DT (for send only, OPTIONAL)

dt=1337
dt=64738
dt=14215469

Amount (MANDATORY)

amount = <value> ["/" <currency_code> ["/" <issuer>]]

100 STR:

amount=100

1 USD:

amount=1/USD

1 USD.justcoin:

amount=1/USD/gnhPFpbYXcYGMkGxfWdQGFfuKEdJoEThVo

Signature (OPTIONAL)

The signing hash is the sha512half of all of the URI up until signature. Hash is signed by the secret key of the merchant, and can be validated by the client. Result is base58-encoded.

NB: Signatures would be nice to have, but for widespread usage they depend of being able to disable the master key. You disable the master key, and use the regular key to sign all TX, and use the master key only for URI signing. In case of a breach, the master key is of no use to the intruder.

stellar-uri's People

Contributors

johansten avatar

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.