From ed96e77eb099e4b1b037d95cb65e77a23dfb9d4c Mon Sep 17 00:00:00 2001 From: Mark Pereira Date: Thu, 13 Sep 2018 00:06:46 +1000 Subject: [PATCH 01/12] adding tenzorum format *incomplete* --- tenzorum.org.md | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 tenzorum.org.md diff --git a/tenzorum.org.md b/tenzorum.org.md new file mode 100644 index 0000000..8addf06 --- /dev/null +++ b/tenzorum.org.md @@ -0,0 +1,48 @@ +# Tenzorum Gasless TXs + +### Format + +``` +{ + uint8 _v, bytes32 _r, bytes32 _s, + address _from, //the subscriber + address _to, //the publisher + uint _value, //wei value of transfer + bytes _data, //data input + address _rewardType, //reward relayers in tokens or ETH + uint _rewardAmount //amount to reward +} +``` + +### Rx +``` + ##Client SDK + + HTTP POST https://login.tenzorum.app/execute + {payload} + GRAPHQL endpoint mutation ExecuteGaslessTx($from: $WalletAddress!, $to: $WalletAddress!, $amount: Int!) { + executeTransaction(from: $from, to: $to) { + amount + } + } + + ##Relay RPG + - Coming +``` + +### Tx +``` +{ + function execute( + uint8 _v, bytes32 _r, bytes32 _s, + address _from, + address _to, + uint _value, + bytes _data, + address _rewardType, uint _rewardAmount) public +} +``` + +### Example Implementation Links +- Coming + +[Tenzorum](https://github.com/austintgriffith/meta-transaction-format-share/blob/master/tenzorum.org.md) From a5538214f822b83da7f114c9e8126863278a4b2e Mon Sep 17 00:00:00 2001 From: Austin Griffith Date: Wed, 12 Sep 2018 08:14:04 -0600 Subject: [PATCH 02/12] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 0fcc869..004a032 100644 --- a/README.md +++ b/README.md @@ -27,4 +27,5 @@ Let's all post our meta transaction formats here in a digestible format. The TL; ### Example Implementation Links +[tenzorum.org](https://github.com/austintgriffith/meta-transaction-format-share/blob/master/tenzorum.org.md) [TokenSubscription](https://github.com/austintgriffith/meta-transaction-format-share/blob/master/tokensubscription.com) From 9f5a9510ec481ac84ad396f988960d6f02296b0c Mon Sep 17 00:00:00 2001 From: Austin Griffith Date: Wed, 12 Sep 2018 08:14:14 -0600 Subject: [PATCH 03/12] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 004a032..e6505dd 100644 --- a/README.md +++ b/README.md @@ -28,4 +28,5 @@ Let's all post our meta transaction formats here in a digestible format. The TL; ### Example Implementation Links [tenzorum.org](https://github.com/austintgriffith/meta-transaction-format-share/blob/master/tenzorum.org.md) + [TokenSubscription](https://github.com/austintgriffith/meta-transaction-format-share/blob/master/tokensubscription.com) From 97dc4cc2843bf247fd04ff047a76a9cd143cd614 Mon Sep 17 00:00:00 2001 From: Austin Griffith Date: Wed, 12 Sep 2018 08:39:55 -0600 Subject: [PATCH 04/12] Rename tokensubscription.com to tokensubscription.com.md --- tokensubscription.com => tokensubscription.com.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename tokensubscription.com => tokensubscription.com.md (100%) diff --git a/tokensubscription.com b/tokensubscription.com.md similarity index 100% rename from tokensubscription.com rename to tokensubscription.com.md From 680b425f734a1762406a9755490a875d4001a152 Mon Sep 17 00:00:00 2001 From: Austin Griffith Date: Wed, 12 Sep 2018 08:40:42 -0600 Subject: [PATCH 05/12] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e6505dd..9ec928f 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,6 @@ Let's all post our meta transaction formats here in a digestible format. The TL; ### Example Implementation Links -[tenzorum.org](https://github.com/austintgriffith/meta-transaction-format-share/blob/master/tenzorum.org.md) +[tenzorum](https://github.com/austintgriffith/meta-transaction-format-share/blob/master/tenzorum.org.md) -[TokenSubscription](https://github.com/austintgriffith/meta-transaction-format-share/blob/master/tokensubscription.com) +[tokenSubscription](https://github.com/austintgriffith/meta-transaction-format-share/blob/master/tokensubscription.com.md) From 54f0bdecb5dc9cbf657fc82ed7388380d7eba14c Mon Sep 17 00:00:00 2001 From: Austin Griffith Date: Wed, 12 Sep 2018 10:33:19 -0600 Subject: [PATCH 06/12] Update README.md --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9ec928f..56c6e65 100644 --- a/README.md +++ b/README.md @@ -21,12 +21,14 @@ Let's all post our meta transaction formats here in a digestible format. The TL; ### Tx ``` { - Here is my (pseudo?)code for getting transactions on chain + Here is my (pseudo?)code for putting transactions on chain } ``` -### Example Implementation Links +### Implementations [tenzorum](https://github.com/austintgriffith/meta-transaction-format-share/blob/master/tenzorum.org.md) [tokenSubscription](https://github.com/austintgriffith/meta-transaction-format-share/blob/master/tokensubscription.com.md) + + From 9a8f9b62dafe1fb99abf660a264da3d2fe081125 Mon Sep 17 00:00:00 2001 From: KamesCG Date: Thu, 13 Sep 2018 22:44:15 +0200 Subject: [PATCH 07/12] Adding uPort --- uport.org.md | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 uport.org.md diff --git a/uport.org.md b/uport.org.md new file mode 100644 index 0000000..66808dd --- /dev/null +++ b/uport.org.md @@ -0,0 +1,39 @@ +### Format +``` +{ + uint8 sigV, + bytes32 sigR, + bytes32 sigS, + address destination, + bytes data, + address listOwner +} +``` + +### Rx +``` +{ + Coming Soon +} +``` + +### Tx +``` +{ + // only allow senders from the whitelist specified by the user, + // 0x0 means no whitelist. + require(listOwner == 0x0 || whitelist[listOwner][msg.sender]); + + address claimedSender = getAddress(data); + // use EIP 191 + // 0x19 :: version :: relay :: whitelistOwner :: nonce :: destination :: data + bytes32 h = keccak256(byte(0x19), byte(0), this, listOwner, nonce[claimedSender], destination, data); + address addressFromSig = ecrecover(h, sigV, sigR, sigS); + + require(claimedSender == addressFromSig); + + nonce[claimedSender]++; //if we are going to do tx, update nonce + + require(destination.call(data)); +} +``` From 6a3ab426c1d5b02f17019c75f61f51e145e39b3c Mon Sep 17 00:00:00 2001 From: Austin Griffith Date: Fri, 14 Sep 2018 05:34:51 -0600 Subject: [PATCH 08/12] Update README.md --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 56c6e65..ca0ab34 100644 --- a/README.md +++ b/README.md @@ -27,8 +27,10 @@ Let's all post our meta transaction formats here in a digestible format. The TL; ### Implementations +[uPort](https://github.com/austintgriffith/meta-transaction-format-share/blob/master/uport.org.md) + [tenzorum](https://github.com/austintgriffith/meta-transaction-format-share/blob/master/tenzorum.org.md) -[tokenSubscription](https://github.com/austintgriffith/meta-transaction-format-share/blob/master/tokensubscription.com.md) +[tokenubscription](https://github.com/austintgriffith/meta-transaction-format-share/blob/master/tokensubscription.com.md) From e0f98ddad498f32b2997a60ac9bc0c61ef1d2a4e Mon Sep 17 00:00:00 2001 From: Austin Griffith Date: Fri, 14 Sep 2018 07:34:25 -0600 Subject: [PATCH 09/12] Update README.md --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ca0ab34..7443aff 100644 --- a/README.md +++ b/README.md @@ -27,10 +27,15 @@ Let's all post our meta transaction formats here in a digestible format. The TL; ### Implementations -[uPort](https://github.com/austintgriffith/meta-transaction-format-share/blob/master/uport.org.md) +[uport](https://github.com/austintgriffith/meta-transaction-format-share/blob/master/uport.org.md) [tenzorum](https://github.com/austintgriffith/meta-transaction-format-share/blob/master/tenzorum.org.md) [tokenubscription](https://github.com/austintgriffith/meta-transaction-format-share/blob/master/tokensubscription.com.md) + +### Important Problems to Solve + +[relay collisions](https://github.com/austintgriffith/meta-transaction-format-share/issues/3) + From f87b47d627484673b051d5e959b4236e5336c59b Mon Sep 17 00:00:00 2001 From: Austin Griffith Date: Fri, 14 Sep 2018 07:48:50 -0600 Subject: [PATCH 10/12] Update README.md --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7443aff..2b97d44 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,9 @@ Let's all post our meta transaction formats here in a digestible format. The TL; -### Important Problems to Solve +### Important problems to solve [relay collisions](https://github.com/austintgriffith/meta-transaction-format-share/issues/3) +[dyanmic gas rewards](https://github.com/austintgriffith/meta-transaction-format-share/issues/4) + From a58d68a0b2620aa2cc06f2d2b1aeeb049e4f1664 Mon Sep 17 00:00:00 2001 From: Austin Griffith Date: Fri, 14 Sep 2018 07:49:33 -0600 Subject: [PATCH 11/12] Update README.md --- README.md | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 2b97d44..7868b85 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,23 @@ Let's all post our meta transaction formats here in a digestible format. The TL;DR here is to communicate how someone else could execute your meta transaction for you. -### Format +## Implementations + +[uport](https://github.com/austintgriffith/meta-transaction-format-share/blob/master/uport.org.md) + +[tenzorum](https://github.com/austintgriffith/meta-transaction-format-share/blob/master/tenzorum.org.md) + +[tokenubscription](https://github.com/austintgriffith/meta-transaction-format-share/blob/master/tokensubscription.com.md) + + +## Important problems to solve + +[relay collisions](https://github.com/austintgriffith/meta-transaction-format-share/issues/3) + +[dyanmic gas rewards](https://github.com/austintgriffith/meta-transaction-format-share/issues/4) + + +## Format ``` { This is the format of my meta transaction @@ -25,19 +41,4 @@ Let's all post our meta transaction formats here in a digestible format. The TL; } ``` -### Implementations - -[uport](https://github.com/austintgriffith/meta-transaction-format-share/blob/master/uport.org.md) - -[tenzorum](https://github.com/austintgriffith/meta-transaction-format-share/blob/master/tenzorum.org.md) - -[tokenubscription](https://github.com/austintgriffith/meta-transaction-format-share/blob/master/tokensubscription.com.md) - - - -### Important problems to solve - -[relay collisions](https://github.com/austintgriffith/meta-transaction-format-share/issues/3) - -[dyanmic gas rewards](https://github.com/austintgriffith/meta-transaction-format-share/issues/4) From 40bfe7618a4d320281fe031732b3f608b1f58bd9 Mon Sep 17 00:00:00 2001 From: Austin Griffith Date: Fri, 14 Sep 2018 07:56:31 -0600 Subject: [PATCH 12/12] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7868b85..048e412 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ Let's all post our meta transaction formats here in a digestible format. The TL; [relay collisions](https://github.com/austintgriffith/meta-transaction-format-share/issues/3) -[dyanmic gas rewards](https://github.com/austintgriffith/meta-transaction-format-share/issues/4) +[dynamic gas rewards](https://github.com/austintgriffith/meta-transaction-format-share/issues/4) ## Format