## Where communities thrive

• Join over 1.5M+ people
• Join over 100K+ communities
• Free without limits
• Create your own community
##### Activity
• Apr 26 19:11
hswick removed as member
• Apr 26 19:11
hswick removed as member
• Oct 25 2020 17:32

teutsch on master

update (compare)

• Dec 12 2019 04:03
mrsmkl edited as member
• Dec 12 2019 04:03
hswick edited as member
• Dec 12 2019 04:03
bloodstalker edited as member
• Dec 12 2019 04:01
mrsmkl edited as member
• Dec 12 2019 03:54
mrsmkl edited as member
• Dec 12 2019 03:54
mrsmkl edited as member
• Dec 12 2019 03:53
mrsmkl edited as member
• Nov 08 2019 07:23

teutsch on master

Update README.md (compare)

• Oct 03 2019 12:42
mrsmkl unassigned #70
• Oct 03 2019 06:56

mrsmkl on rollback

• Oct 03 2019 06:56

mrsmkl on rollback2

• Oct 03 2019 06:56

mrsmkl on master

• Oct 03 2019 06:56

mrsmkl on master

• Oct 03 2019 06:52

mrsmkl on rollback2

• Oct 02 2019 14:10

mrsmkl on master

• Oct 02 2019 14:09

mrsmkl on master

• Oct 02 2019 14:08

mrsmkl on master

Sami Mäkelä
@mrsmkl
@teutsch the transaction cost is included in the $1 imTyrant @imTyrant So... suppose a Solver solves a one-day task cost$1, then if we have another 23 Verifier solve the same task, the total cost will be \$1 per hour. Am I right? But shouldn't the payment for Verifiers come from jackport instead of the Task Giver's deposit?
Jason Teutsch
@teutsch
The payment does come from the jackpot, but the jackpot is funded by the Task Giver. The Task Giver pays the Verifiers' expected reward so that the expected capital in the Jackpot Repository tends toward a constant over time. If tasks would be free to the Task Giver, this would probably induce spam. Then Verifiers could issue tasks that they already knew the answers to and get rich from solving them without doing any work. In this scenario, there is then little incentive to instead perform "real" tasks that involve actual work.
imTyrant
@imTyrant
In my understanding, what a Task Giver have to pay are 1) the reward for solving task, 2) the tax to be added into jackport repository. The reward must higher than the indeed cost of a task which is metered by CPU cycle of the task. The tax is for 1) maintaining the jackport repository in a constant value, 2) preventing some attacker from spamming. We believe that the price of per CPU cycle will be a reasonable price, compared with gasPrice in Ethereum, thus we can say the execution of complex task in Truebit is much more cheaper than in Ethereum.
Jason Teutsch
@teutsch
Yes, that's right -- the Task Giver pays both the expected Solver and Verifier rewards, which is not only much cheaper than Ethereum but also much more convenient when one plans to exceed the gas limit.
imTyrant
@imTyrant
In my paper, I want to convince the reviewers that the cost of computation can be indeed reduced through Truebit, but I have no ideas to prove it... Could you give me some advice? Is it feasible to measure the task execution time and estimate the amount of money that this task might cost with the unit price of cloud computing, like Amazon EC2?
Jason Teutsch
@teutsch
@mrsmkl may be able to give you some benchmarks on the overhead for the new JIT compiler vs. native code. Truebit JIT might be less expensive than EC2, however EC2 probably has better performance. Do you have any specific tasks you'd like to run on EC2, and can you estimate their dollar costs?
imTyrant
@imTyrant
Sorry for my bad expression. What I mean is I want to prove the gas consumption in Ehtereum can be reduced through Truebit. Currently, the execution of my smart contract costs about 30 million gas, which is very infeasible. I want to give a proof that the money for executing a task is cheaper. So I wander can I use the unit price of EC2 to measure how much a Truebit task might cost, since we don't know the price of a CPU cycle currently, and the price of EC2 looks like a acceptable standard.
Sami Mäkelä
@mrsmkl
should be ok to use that, but most likely your task won't take much processing time, so the Eth transaction costs will be larger
sometimes it's possible to collect several tasks into a batch, then the transaction costs will not increase
imTyrant
@imTyrant
Is submitting a task is main Eth cost of the Task Giver?
Jason Teutsch
@teutsch
Yes, but that price also includes the cost of returning the output.
imTyrant
@imTyrant
Ok! Thank you very much for your help!
Who Has Cucked Today?
@Xavier96660908_twitter
does this actually work?
Sarvesh Jain
@sarvesh-ost

Hi Team,

Could you please enable github issue for below repository. I wanted to initiate a discussion on the repository.

https://github.com/TrueBitFoundation/eth-patricia

Thanks

Sami Mäkelä
@mrsmkl
@sarvesh-ost done
Sarvesh Jain
@sarvesh-ost
Thank you
Anthony Albertorio
@tesla809
Hey hey! Great community here!
Jason Teutsch
@teutsch
Welcome!
Sami Mäkelä
@mrsmkl
please test the latest docker image: https://github.com/TrueBitFoundation/truebit-os#running-on-docker ... trying to have a stable version now that can be used for developing Truebit tasks
KadiumRA
@KadiumRA
hello everyone. I have been watching this project grow and develop for a few years now, but for the life of me I can't figure out how to invest or become a verifier or get involved at all. I know nothing about programming in blockchain, I'm just a regular guy that's been watching cryptos for a few years and know that this is an important project. Any tips? Plans to meet in Denver again?? Thanks :)
Jessica Angel
@J_Angel_Studio_twitter
Hi @KadiumRA welcome to the Truebit community. Thanks for reaching out! This is the right step to get involved. I’m happy to answer all your questions! Will DM you and we can take from there.
KadiumRA
@KadiumRA
@J_Angel_Studio_twitter Thank you! I'm on and off the computer throughout the day, I'll respond to your DM as soon as I see it and hopefully catch you at a good time.
Jessica Angel
@J_Angel_Studio_twitter
@KadiumRA Fantastic! Looking forward.
Jessica Angel
@J_Angel_Studio_twitter
Hey @KadiumRA I sent you a DM yesterday. Let me know if you got it.
KadiumRA
@KadiumRA
Just now saw the DM. I responded there.
Truebit
@Truebitprotocol_twitter

Hi @KadiumRA Looking forward to meeting on Monday.

To get started:

1- Download Docker- https://www.docker.com/
2- Open your terminal
3- Start up the docker image with this command docker run --rm -ti mrsmkl/wasm-ports:19-04-02 /bin/bash
*This may take a little while to download. Be patient ;)
4- Start Truebit environment cd truebit-os sh scripts/start-private.sh
5- Truebit-OS client for Goerli works inside of Docker. Use this command to enter the client there: npm run truebit
6 - Try and generate a task with the command task
7- You can solve others' tasks with command start solve

Let me know how that goes. see you soon
Jessica

@tesla809 Yoyo! get Truebit running on your computer. I can go to the meetup on Monday and we can play around! Check the instructions above ↑↑↑
Jessica Angel
@J_Angel_Studio_twitter
@KadiumRA meant to write from my Jessica account above. Let me know if you have any questions.
Palakurty
@jpalakurty_twitter
hi guys, just wanted to check how the things are progressing at truebit. I have a question here. Is truebit a competitor to Chainlink or part of it's eco system of oracles?
VSchoch
@VSchoch
Hi, I´ve installed Truebit OS from Source like it´s explained here: https://github.com/TrueBitFoundation/truebit-os
I claimed some tokens, started a solver and a taskgiver and tried to submit the task testWasmAlphabet with the command "task -a 0 -t testWasmAlphabet.json", but while executing I get an error.
Here is the screenshot of the Error: https://imgur.com/a/5DWIEgm
Is there something i have todo first, before submitting this task?
I´m thankfull for every help i can get :)
Sami Mäkelä
@mrsmkl
nope, there shouldn't be anything. that task is a bit broken, so we just have used it to test that everything works correctly if the task fails. it should work the same way as the other test task if you just skip forward
we'll need to clarify the messages somehow
VSchoch
@VSchoch
It says "SOLVER: Revealed correct solution" and "SOLVER: Finalized task"
But where can i find the solutions of the task?
There is nothing in the solutions folder.
It also generates a folder "tmp.solver_o2eabqlu1vo0" which contains the WASM code, alphabet.txt, reverse_alphabet.txt, alphabet.txt.out and reverse_alphabet.txt.out, but both reverse_alphabet files are empty.
Sami Mäkelä
@mrsmkl
well, the task fails so the solution is empty
VSchoch
@VSchoch
ok, is there a way i can change this task to be succesfull?
Sami Mäkelä
@mrsmkl
check the samples from wasm-ports repo for tasks that work
VSchoch
@VSchoch
thank you, i will do that
Sami Mäkelä
@mrsmkl
I think the reverse alphabet task is written in rust, otherwise it can be ran in the same way as other tasks
VSchoch
@VSchoch
reverse alphabet is written in c
Sami Mäkelä
@mrsmkl
VSchoch
@VSchoch
thank you
Sami Mäkelä
@mrsmkl
here is a compilation script for one wasm task written in rust https://github.com/TrueBitFoundation/wasm-ports/blob/v2/samples/wasm/compile.sh
Achala Bhatt
@AchalaSB

Hi, I'm very early stage of understanding TrueBit, Have few question
How Rust/C code is interacting with ethereum? Where is the JSONRPC calls??

If I want to write my rust code and connect it to ethereum I need jsonrpc/web3 calls which is written in rust.

How this is achieved in truebit?

Achala Bhatt
@AchalaSB
Getting error while running trubit-os
npm run deploy

> truebit-client@1.0.0 deploy /home/achala/codes/truebit/example-app/truebit-os
> node deploy.js

(node:26422) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Invalid JSON RPC response: ""
(node:26422) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Sami Mäkelä
@mrsmkl
looks like you're not running ganache-cli or other private node
Truebit tasks work inside the smart contracts, so the smart contracts provide the data. in theory, you could access ethereum blocks, but that cannot be done using jsonrpc, everything has to be deterministic for the verification game to work
Achala Bhatt
@AchalaSB
If interaction is not happen using jsron how it will do? What exactly the deterministic way?? Is oracle taken into picture?
Sami Mäkelä
@mrsmkl
smart contract will just send the data... of course the Truebit client will use jsonrpc to read that data, but it will just be passed to the C program as a file