How to Integrate VIP-191 (II) — User's Side

  1. The “user” creates a transaction body.
  2. The “user” generates a “user signature”.
  3. The transaction is sent to a “sponsor” to get a “sponsor signature”.
  4. The two signatures are combined to forge a “final signature”.
  5. The final transaction is posted to the VeChain network.
Overview of VIP-191 Fee Delegation.

Deploy the Smart Contract

https://gist.github.com/laalaguer/5d7dd6889e70e8784f4448f529dc8976

Build a Transaction Body

https://gist.github.com/laalaguer/4aa1787887cc7d5aa23c85dd2a59d1d9

Generate a User Signature

https://gist.github.com/laalaguer/1eaea9354eb2deba769a92296814e4f1

Get a Sponsor Signature

Next Steps

  • Write a sponsor service to generate “sponsor signature”.
  • Combine the user signature with the sponsor’s signature.
  • Assemble the final transaction and post to the VeChain network.

Continue Reading:

--

--

--

Passion in computer science.

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
A Byte Ahead

A Byte Ahead

Passion in computer science.

More from Medium

NFT: How 2 simple optimizations could have saved 100M USD

How to Optimize Solidity Smart Contracts Effectively!

Creating a Blockchain and using a REST API to insert blocks and retrieve the chain.

Hardhat vs Truffle