Welcome to web vouchers
We are currently working on a web voucher spec
And an implepentation using the lightning network
web vouchers
Home Page: https://webvouchers.org/
License: GNU Affero General Public License v3.0
This issue proposes adding support for specifying an amount within txo (transaction object) based Web Vouchers. Currently, the txo format allows including the transaction ID (txid), output (vout), and optionally a private key for spending. However, it lacks the ability to define a specific amount associated with the voucher.
Motivation:
The introduction of an amount field in txo Web Vouchers would provide greater flexibility and real-world applicability. It would enable scenarios where a voucher can represent a specific value within a supported cryptocurrency, such as Bitcoin.
Proposed Change:
We suggest extending the txo Web Voucher format to include an amount field. This field could be represented in the following ways:
Within the Existing URL Structure:
Add a new parameter after vout
separated by a question mark (?
). For example:
urn:voucher:txo:chain:123456789abcdef:vout?amount=1000000
This example specifies a voucher for 10000 satoshis (the smallest unit of Bitcoin).
Separate Field in the Linked Data Document:
.well-known/voucher/txo:chain:123456789abcdefghi
). This property would explicitly define the amount associated with the voucher.Benefits:
Next Steps:
We welcome feedback and suggestions from the community on this proposal. Let's work together to improve the capabilities and adoption of Web Vouchers.
with url safe encoded json
the json will be self decribing
for example
urn:voucher:txo:
urn:voucher:cashu:
each subclass points to a voucher system, in the spec for now
later it can be split into a registry
Suggested text:
The concept of Web Vouchers introduces a standardized method for encoding and redeeming vouchers, voucher codes, or bearer tokens within Uniform Resource Names (URNs) for one-time payments and services on the Internet. This innovative approach aims to simplify and secure transactions across various online platforms, providing a universal solution for one-time codes that offer a wide range of applications from e-commerce discounts to secure access tokens for online services. By leveraging the existing infrastructure of URNs, Web Vouchers facilitate a seamless integration into current web ecosystems, offering a unique blend of versatility, security, and ease of use not found in existing systems.
as per nut-00
remove for now
<section>
<h3>Implementations</h3>
<h4>Client</h4>
The first client implementation uses vouchers to interact with the lightning network.<br /><br />
<a href="https://webvouchers.org/play/voucher.html">Client Demo</a>
<h4>Server</h4>
<a href="https://github.com/solidpayorg/webvouchers/blob/gh-pages/bin/lightning.js">Server Code</a>
</section>
Leave it out for now
<section>
<h2>Design Considerations</h2>
<p>There is often a public component, this is to allow the person owning/selling the voucher to know the
voucher still contains value. The private part is what is used to redeem and claim the voucher credit. The
private part is typically a one way retrieval process, e.g. tearing open the packet, scratching off the silver or
a hologram.</p>
<p>The the issuer, or mint, is often included in the URN. This is because you may have Starbucks, PayPal, CoinMode,
Google, etc... could be issuing these vouchers. Whoever is issuing the voucher needs to be named somehow.</p>
<p>Thirdley the currency needs to be described. This is either USD, BTC, GBP, starbuck points etc..</p>
<p></p>Finally there is an optional expiry date option as many vouchers are handled
by
businesses who need to reclaim lost funds somehow and expiry solves this.</p>
i.e. common fields could be
<pre>
voucher: to define it is some sort of voucher
url: where to query and get more info about the voucher.
public: very large integer value to verify amount voucher can be redeemed for.
private: the redeeming number
destination: platform specific could be a cryptoaddress or user handle
</pre>
This gives two urns. One to check a voucher and another to redeem it
<h4>JSON key values</h4>
The following are suggested JSON fields to tie to a voucher.
<pre>
{
issuer:"acme",
public: 12345678901234567890,
is_valid: true,
currency: "bitcoin",
amount:1000000
expires: 1238972934 (epoch time)
redeem_url : "https://www.acme.com/redeem"
remaining_uses : 1
redeemed : false
redeemed_by : "??"
redeemed_dates : [ 123987234, 124789238 ]
}</pre>
</section>
</section>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.