Lior Yaffe: Introduction to Transaction Voucherswallet voucher exchange blockchain ardor
One of the most annoying and error prone aspects of crypto trading is the process of deposits and withdrawals from exchanges.
Take a look at this Bittrex deposit dialog for Ardor
Let’s think together about all the things which can go wrong when you send your precious Ardor tokens from your account to Bittrex.
But things can get much worse …
6. What if instead of connecting to Bittrex.com, you were tricked into connecting to, say, Bitrex.com? Let’s assume for a moment it’s a phishing site aimed to steal your funds, if you don’t notice the difference you will happily deposit into the address they provide you, losing all your tokens.
Exchange withdrawal process suffers from similar problems as well. For example, what if you withdraw your funds to a newly created account and then forget the passphrase? Say bye bye to your precious tokens.
But even just sending crypto between friends or businesses is risky. When you email your account address and amount without any authentication, what if someone intercepts this email and changes the address or amount? Can we do better? Yes we can!
Our Solution — Transaction Vouchers
Think about transaction vouchers like an invoice. A request to pay a certain amount to a certain address signed by the private key of the recipient. The idea is based on the Bitcoin Payment Request proposal but using the rich functionality of Ardor/Ignis, we can do so much more.
The voucher itself is a JSON format, composed of the transaction json, transaction bytes and a digital signature of the transaction bytes.
Say, Alice wants Bob to pay her 100 IGNIS. She logs into the Ardor wallet using Bob’s account and sends payment as if she were Bob. Of course, she does not have Bob’s passphrase, so she cannot submit the transaction. Instead, she signs Bob’s payment using her passphrase and generates a voucher.
Alice then downloads the voucher and emails it to Bob.
Bob receives the voucher and loads it into the Ardor wallet. The Ardor wallet automatically verifies that the voucher signature is valid and that the voucher bytes are a correct representation of the voucher transaction JSON. After validation succeeds, the wallet presents Bob with the request, it shows Alice’s address as the recipient, the amount she wants him to pay, any attached messages and any other transaction parameters.
All Bob needs to do is validate the data, sign, and submit the transaction using his passphrase.
Bob is sure that the voucher is authentic, since any changes an attacker might have done to it, will prevent it from being validated by the wallet. Bob is also sure that Alice knows her account passphrase since otherwise she couldn’t have generated the voucher in the first place. Finally, both Alice and Bob now have a document for their bookkeeping, proving to each other and anyone else that the payment was requested.
You can watch me demo the concept in this video from a workshop I ran recently in Norway.
Now think about the Bittrex exchange deposit process. Instead of asking you to send tokens to an address with an attached message, Bittrex could generate a voucher file that you can import into the wallet which contains their deposit address and the message they want you to send them. Perhaps they will also let you scan a QR code with this data. All you’ll need to do, is load this voucher into your wallet, double check the recipient address with the well known Bittrex account, sign, and submit the transaction.
But vouchers are not limited to payments. They can be used for any transaction type supported by Ignis. For example Bob wants to delegate a poll vote to Alice. Alice logs in as Bob and generates a voting voucher, then sends it to Bob by email and asks him to sign and submit it.
Or, as another example, Charlie, a forging pool operator, wants Bob to lease his balance to his pool. Again he performs the leasing request on behalf of Bob, then sends a voucher that Bob needs to sign and submit.
However, it’s important to note that vouchers do not depend on the wallet. Alice and Dave can generate the voucher using an API and Bob can validate and sign them using an API as well. All the processing can even be off loaded to lightweight contracts since vouchers can be used to trigger lightweight contracts and lightweight contracts can generate vouchers. More on this in my next article.
Original article was created by: Lior Yaffe at medium.comDisclaimer: This article should not be taken as, and is not intended to provide, investment advice. Please conduct your own thorough research before investing in any cryptocurrency or ICO.
Interested in Cryptocurrencies and ICO's?
Follow our telegram channel for daily cryptomarket reports!Join @cointrends
|45 minutes ago||blockchain|
|50 minutes ago||blockchain|
|4 hours ago||exchange|
|2 days ago||exchange|
|2 days ago||ardor|
|1 week ago||ardor|
|2 days ago||wallet|
|3 days ago||wallet|
Stay on top of Altcoins and ICO trends.
Subscribe to our free Weekly Cryptomarket report
Delivered once a week, strongly to your inbox.Subscribe to our mailing list
August 14, 2018
Hi Arek, can’t tell much about the outcome of https://medium.com/binanceexchange/binance-dexathon-845dc0cbfffeI know that xCubicle has applied but I don’t think they received any feedback from Binance.From: Lior Yaffe
August 10, 2018
Blockchain But. Image credit: Jake Young, from Unplash.When working for a large software company, my team used to follow an agile development methodology named Scrum. To be honest, I never liked this methodology. It took away the creativity and fun from software development by forcing you to...From: Lior Yaffe
July 28, 2018
The Jelurida team brain storming at the Lugano officeOne of my colleagues at my previous job used to say that getting a software feature 99% done is just the beginning. The leap from 99% to 100% is the biggest step.The development of the lightweight contracts feature is pretty much done but it...From: Lior Yaffe
July 20, 2018
Jelurida is a company registered in Lugano Swiss. See https://www.jelurida.com/ , DYORFrom: Lior Yaffe
July 13, 2018
How to save your crypto when you dieIn the next 100 years or so we will all die and this is one of the two facts of life we have to accept. This creates an awkward problem, since in crypto you are responsible for your funds, if you die your crypto will die with you.Is there a way to recover...From: Lior Yaffe
July 05, 2018
Ardor lightweight contracts have a fast and secure method for random number generation.Random Number Generator in Contracts. Image Credit: Nick Hillier from UnsplashBlockchain-based contracts often need to generate random numbers for use cases such as gaming, gambling, simulation...From: Lior Yaffe