-
Notifications
You must be signed in to change notification settings - Fork 6
/
resources.html
625 lines (601 loc) · 23.5 KB
/
resources.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="canonical" href="https://rchain.coop/resources.html"></link>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script
async
src="https://www.googletagmanager.com/gtag/js?id=G-6B7FD7W88H"
></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());
gtag("config", "G-6B7FD7W88H");
</script>
<script>
/**
* Function that captures a click on an outbound link in Analytics.
* This function takes a valid URL string as an argument, and uses that URL string
* as the event label. Setting the transport method to 'beacon' lets the hit be sent
* using 'navigator.sendBeacon' in browser that support it.
*/
var captureOutboundLink = function(url) {
ga('send', 'event', 'outbound', 'click', url, {
'transport': 'beacon',
'hitCallback': function(){document.location = url;}
});
}
</script>
<title>RChain | hackathon 2020</title>
<meta
name="viewport"
content="width=device-width, initial-scale=1.0"
charset="UTF-8"
/>
<meta
name="google-site-verification"
content="NvXu2Qnyi90bS-ubPtaorKKja1_p8SHfQ0zPoqG0sIg"
/>
<link rel="stylesheet" href="css/layout.css?version=5" />
<link rel="stylesheet" href="css/style.css?version=1" />
<link rel="shortcut icon" href="assets/favicon-red.png" />
<meta property="og:title" content="Hackathon 2020 - RChain" />
<meta property="og:type" content="website" />
<meta name="description" content="" />
<meta property="og:description" content="" />
<meta property="og:url" content="https://rchain.coop/platform" />
<meta property="og:image" content="" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="RChain platform" />
<meta name="twitter:image" content="" />
<meta name="twitter:url" content="https://rchain.coop/platform" />
<meta name="twitter:description" content="" />
</head>
<body class="pageHackaton">
<header></header>
<div class="horizontal-nav-cover"></div>
<div class="bodyWrapper">
<div class="section" id="rchainSection">
<div class="TOC">
<a href="#rchain-apart">RChain Advantage</a>
·
<a href="#dev-apis">dApp Developer APIs, Tools</a>
·
<a href="#rchain-tech">RChain In Depth</a>
·
<a href="#rchain-tech">RNode core scala dev</a>
·
<a href="#reg-sel">Registration and Selection</a>
·
<a href="#misc">Misc</a>
</div>
<div class="textWrapper">
<h2 id="rchain-apart">RChain Advantage</h2>
<p>
<a href="https://developer.rchain.coop">RChain</a> an emerging, open
source, decentralized, economically sustainable public compute
infrastructure. While the RChain design is inspired by that of
earlier blockchains, it also realizes decades of research across the
fields of concurrent and distributed computation, mathematics, and
programming language design.
</p>
<div class="talk video">
<iframe
width="560"
height="315"
src="https://www.youtube.com/embed/Iraa7jP534g"
frameborder="0"
allow="accelerometer; autoplay;
clipboard-write; encrypted-media; gyroscope;
picture-in-picture"
allowfullscreen
></iframe>
</div>
<p>
<a href="https://www.yuque.com/rev/rchain">Blockchain Comparison Matrix</a> (pdf)
</p>
<h2 id="dev-apis">dApp Developer APIs and Tools</h2>
<p>
There’re APIs available for the platform that allow a person
skilled in any language to develop apps.
</p>
<ul>
<li>
<a href="https://github.com/rchain/rchain/tree/dev/docs/rnode-api"
>RNode API</a
>: rnode communicates primarily using gRPC but it also has the
<a href="https://developer.rchain.coop/rnode-api">RNode Web API</a
>, which supports use directly from browsers, curl, etc.
</li>
<li>
Rholang
<ul>
<li>
<a href="https://developer.rchain.coop/rho-blockly"
>Rho Blockly</a
>
</li>
<li>
<a href="https://developer.rchain.coop/rholang-playground"
>Rholang Playground</a
>
</li>
<li>
<a
href="https://github.com/rchain/rchain/blob/dev/rholang/reference_doc/rho_cheatsheet.pdf"
>Rholang cheat-sheet</a
>
</li>
<li>
<a
href="https://visualstudio.microsoft.com/services/live-share/"
>vs-code Live Share</a
>
</li>
<li>
<a
href="https://marketplace.visualstudio.com/items?itemName=tgrospic.rholang"
>vs-code extension for Rholang</a
>
</li>
<li>
<a
href="https://github.com/rchain/rchain/tree/dev/rholang/examples"
>rholang/examples</a
>
</li>
<li>
<a
href="https://github.com/rchain/rchain/tree/dev/casper/src/main/resources"
>genesis contracts</a
>: Casper Proof of Stake, REV Vault, MakeMint, ListOps, Either
</li>
<li>
<a href="https://rhobot.net/LearnRholangByExample/"
>Learn Rholang By Example</a
>, Rhobot.net
</li>
<li>
<a
href="https://www.youtube.com/watch?v=gRxXQx3cn9c&list=PLf2bbiic5ZjD2QuelvOaoLF7gFiSj7u7j&index=31"
>Getting started with Rholang smart contracts</a
>
1hr talk by Stay and Shikama, Jun 2018
</li>
</ul>
</li>
<li>
... more on
<a href="https://developer.rchain.coop">developer.rchain.coop</a>
</li>
<li>
<a
href="https://github.com/rchain/hackathon-2020/issues?q=is%3Aissue+is%3Aopen+label%3A%22Problem+Statement%22"
>Sample problem statements you can work on or create your own</a
>
</li>
</ul>
<img
src="https://raw.githubusercontent.com/tgrospic/rholang-vscode/v0.3.0/assets/rholang-sample.gif"
alt="vs-code animation"
/>
<h2 id="rchain-tech">RChain In Depth</h2>
<p>
The RChain decentralized applications platform is powered by the
<dfn>Rho Virtual Machine</dfn>, including:
</p>
<ul>
<li>
<dfn>Rholang</dfn>: an asynchronous message based concurrent
language with reflection, thus supporting higher-order mobility
and capability security
</li>
<li>
<dfn>RSpace</dfn>: a key-value database supporting the storage and
query of both data and code
</li>
</ul>
<div class="talk video">
<iframe
width="560"
height="315"
src="https://www.youtube.com/embed/3R3IL1bGm0s?start=13"
frameborder="0"
allow="accelerometer; autoplay;
clipboard-write; encrypted-media; gyroscope;
picture-in-picture"
allowfullscreen
></iframe>
</div>
<h2>Rholang Foundations: Rho Calculus</h2>
<p>
<a href="https://developer.rchain.coop">RChain</a> is an open
source, emerging blockchain platform with a smart contract language
called <a href="https://rholang.github.io/">Rholang</a>. The syntax
and execution mechanism are derived directly from the
<a
href="https://www.sciencedirect.com/science/article/pii/S1571066105051893"
>rho-calculus</a
>, a variant of
<a href="https://www.lfcs.inf.ed.ac.uk/reports/91/ECS-LFCS-91-180/"
>Milner’s π-calculus</a
>. The platform is intended to support correct-by-construction smart
contracts with behavioral types. It is not possible to have bytecode
injection attacks. RChain is the first implementation of the
Correct By Construction (CBC) Casper consensus algorithm.
</p>
<p>
Being derived from the rho-calculus, Rholang is a language in the
process calculi family of languages. Rholang is an
asynchronous message based concurrent language with reflection, thus
supporting higher-order mobility, like the
<a href="https://link.springer.com/chapter/10.1007/3-540-56610-4_62"
>higher-order π-calculus</a
>, but with far simpler syntax and semantics. Rholang has deep
mathematical foundations making it suitable for automatic formal
verification of code. In particular, Rholang is compatible with a
<a href="https://link.springer.com/chapter/10.1007/11580850_19"
>behavioral type system</a
>
that has already been
<a
href="https://docs.google.com/document/d/1sGlObhGhoEizBXC30Ww4h1KHKGkmcy4NiCKitIBqiUg/edit?usp=sharing"
>shown to detect crucial bugs in the blockchain application
space</a
>.
</p>
<p>
When considered in the context of RSpace, its execution mechanism
and a unique key-value database supporting the storage of both data
and active code, Rholang may also be seen as a next generation query
language that reconciles relational query mechanisms with nosql.
This means that as a smart contracting language Rholang is ideal for
making blockchain a platform for data intensive applications where
data is stored on chain, as well as a process modeling language,
such as XLang, BEPL, or BPML.
</p>
<ul>
<li>
<a
href="https://www.youtube.com/watch?v=gRxXQx3cn9c&list=PLf2bbiic5ZjD2QuelvOaoLF7gFiSj7u7j&index=31"
>getting started with rholang</a
>
</li>
<li>
<a href="https://www.youtube.com/watch?v=XhwrZuXMyfE"
>LADL from the Ground Up</a
>
by Mike Stay and Greg Meredith, Jun 2018
</li>
<li>
<a
href="https://github.com/rchain/rchain/blob/master/docs/rholang/rholangtut.md"
>core dev rholang tutorial</a
>
</li>
<li>
<a
href="https://github.com/rchain/rchain/blob/master/docs/rholang/rholangmatchingtut.md"
>A Tutorial for Matching in Rholang</a
>
</li>
<li>
<a
href="https://github.com/rchain/rchain/blob/master/docs/rholang/rholangmatchingtut.md"
>More in-depth tutorial on pattern matching</a
>
</li>
<li>
<a
href="https://github.com/rchain/rchain/tree/dev/casper/src/main/resources"
>Casper contracts, including ListOps, Either</a
>
</li>
</ul>
<iframe
width="560"
height="315"
src="https://www.youtube.com/embed/gRxXQx3cn9c"
frameborder="0"
allow="accelerometer; autoplay;
clipboard-write; encrypted-media; gyroscope;
picture-in-picture"
allowfullscreen
></iframe>
<h2 id="rchain-tech">RNode core scala dev</h2>
<p>
The core RChain platform is developed in Scala with extensive use of
the cats library for pure, typeful functional abstractions.
</p>
<ul>
<li>
<a href="https://github.com/rchain/rchain/">rchain/rchain</a> on
github
</li>
</ul>
<p>
Those desiring
<strong>core platform development internships</strong>, should
preferably understand the structure and logic of the
<a href="https://typelevel.org/cats/">cats library</a> (<a
href="https://github.com/typelevel/cats"
>typelevel/cats</a
>) and the best practices in using it. Also required for core
platform internships: familiarity with and/or interest in Test
frameworks, generative and law based testing using e.g. ScalaTest,
Discipline and Test Driven Development. However, Scala
expertise is not a requirement for participation in the hackathon.
</p>
<h2 id="reg-sel">Registration and Selection Process:</h2>
<ol>
<li>
Register your team and component individuals (all individuals in
the team use the same team name) at
<a
href="https://docs.google.com/forms/d/e/1FAIpQLSfV-gNIA6-8pLiIFqe4hQmekw0JAE0llDz-AVCmw7J9DzYq1g/viewform"
>registration form</a
>, providing the github user account and github registered email
account for each team member, including: generating and submitting
a SEPARATE REV address for EACH TEAM MEMBER using one of the
interfaces to the RChain network. The REV address will be used for
rewards, prizes etc.
</li>
<li>
Teams may describe a problem statement they want to work on.
Rchain will make available several problem statements for teams
that do not have a self-created problem statement.
</li>
<li>
Each team member can also provide a cell phone number and the
corresponding SMS email address, to receive SMS notifications and
reminders.
</li>
<li>
All individuals participate in the
<strong>
online qualification test on FRIDAY, NOVEMBER 6, 2020
</strong>
that includes questions in Logic, Scala, JavaScript, Python,
Rholang and Cryptography + Blockchain concepts.
</li>
<li>
Qualifying candidates will participate in a preliminary contest to
create pull requests on github for smallish specified technical
issues. Github familiarity (how Github works, making repositories,
forks and feature branches, creating pull requests etc.) is
required of ALLCANDIDATES.
</li>
<li>
Hackathon participants will be selected based on their weighted
performance in the test and the github exercises
</li>
<li>
Teams will be formed around the problem statements, while
balancing requisite team skills
</li>
<li>
Teams will select and finalize scope of the problem statements
they will work on.
</li>
<li><strong> Actual Hackathon on November 7-8, 2020</strong></li>
<li>Judgement of teams by judges</li>
<li>Prizes</li>
<li>
<strong
>Opportunity for select teams and/or individuals to participate
with RChain community in project based internships lasting three
months to a year+</strong
>
</li>
</ol>
<p>
Chat with us in our
<a
href="https://discord.com/channels/375365542359465989/748967102840569886"
>#hackathon-2020</a
>
channel on Discord
<a href="https://discord.gg/NWkQnfH" onclick="captureOutboundLink('https://discord.gg/NWkQnfH'); return false;">(Invitation Link)</a>.
</p>
</div>
<div class="textWrapper">
<div class="divider">
<div></div>
</div>
<h2>Learning Resources</h2>
<h5>Github</h5>
<ul>
<li>
<a
href="https://docs.github.com/en/github/getting-started-with-github"
>Getting started with GitHub</a
>
</li>
<li>
<a href="https://github.com/rchain-community">rchain-community</a>
github organisation
</li>
<li>..many other resources</li>
</ul>
<h5>Rholang</h5>
<ul>
<li>
<a href="https://rchain-community.readme.io/"
>RChain Community Developer Hub</a
>
</li>
<li>
<a
href="https://blog.rchain.coop/2020/08/11/rchain-powerbox-summary/"
>Powerbox functions</a
>
</li>
<li>Object Capability patterns</li>
<li>
<a
href="https://github.com/dckc/awesome-ocap#presentations-talks-slides-and-videos"
>Slides & Videos</a
>
</li>
<li>
<a href="https://github.com/dckc/awesome-ocap/wiki"
>Github: Awesome OCAPS</a
><br />
a Pattern Language for object capability (ocap) patterns,
especially their use in secure JavaScript and Rholang.
</li>
<li>
<a
href="https://www.youtube.com/watch?v=fW4KXUqiKO4&list=PLf2bbiic5ZjD2QuelvOaoLF7gFiSj7u7j"
>RChain Boulder devcon</a
>
</li>
<li>
<a
href="https://www.youtube.com/watch?v=Fs38s7nI3Uk&list=PLf2bbiic5ZjCPzin3gCSMGiBtbT8UO5o2"
>2017 dev retreat</a
>
</li>
</ul>
<h5>Blockchain in General</h5>
<ul>
<li>
<a
href="https://rchain.atlassian.net/wiki/spaces/DOC/pages/3014657/Reading+List#ReadingList-Blockchain101"
>Reading List - BlockChain-101</a
>
</li>
<li>Coursera course on blockchains by SUNY Buffalo</li>
<li>Coursera - AICPA Course on applications of Blockchain</li>
</ul>
<h5>RChain Platform</h5>
<ul>
<li>
On youtube, subscribe to the RChain channel and search on rcast
for discussions of RChain applications, Governance, philosophy and
future plans
</li>
<li>
<a
href="https://rchain.atlassian.net/wiki/spaces/DOC/pages/47808694/Onboarding+the+first+week"
>Onboarding: the first week</a
>
</li>
<li>
<a
href="https://rchain.atlassian.net/wiki/spaces/DOC/pages/3014657/Reading+List"
>Reading List</a
>
</li>
<li>
<a href="https://status.rchain.coop/testnet/faucet/"
>TestNet REV Faucet
</a>
</li>
</ul>
<h5>Books on Scala</h5>
<ul>
<li>
Functional Programming Simplified by Alvin Alexander (focus on the
performant immutable data structures)
</li>
<li>Functional Programming in Scala,</li>
<li>
Scala for the impatient (you can skip the chapters related to
objects),
</li>
</ul>
<h5>Examples (there are several others on the net):</h5>
<ul>
<li>
<a href="https://github.com/leithaus/spigot"
>Github: A translation of the code examples from "Unbounded
Spigot Algorithms for the Digits of Pi" (Gibbons, 2006) from
Haskell to Scala.</a
>
</li>
<li>
<a
href="https://www.cs.ox.ac.uk/jeremy.gibbons/publications/spigot.pdf"
>PDF: Unbounded Spigot Algorithms for the Digits of Pi by Jeremy
Gibbons</a
>
</li>
<li>
<a
href="https://gist.github.com/tgrospic/0c58a91f07aa08a4518b754dce61445a"
>Github: RChain Education: Functional Effects for Scala</a
>
</li>
<li>
<a href="https://youtu.be/xBDN3sczl2c"
>Video: RChain Education Session: auction bidding & Scala
development</a
>
</li>
<li>
<a
href="https://gist.github.com/tgrospic/661f6504c4940ac6b15e13c06abbdffe"
>Github: RChain Education: Introduction to tagless-final style
in Scala: higher-kinded types</a
>
</li>
<li>
<a href="https://youtu.be/-p1QqAilZoI"
>Video: RChain education: Introduction to tagless-final style in
Scala: higher-kinded types</a
>
</li>
<li>
<a
href="https://www.youtube.com/watch?v=nQ39A960EiM&list=PLniEJXpXl6-qSgCMKT2ocQIYt_BQZe04u"
>Video: RChain Education: compiling RNode</a
>
</li>
<li>
<a
href="https://blog.rchain.coop/2020/10/07/rchain-voting-in-rholang/"
>Voting in Rholang (RVote)</a
>
</li>
</ul>
<h5>RChain Education: Implementation of Simple Rholang language</h5>
<ul>
<li>
<a
href="https://gist.github.com/tgrospic/c56316dd769fdb797337dbeb5047e794"
>Github: SimpleRholang.scala</a
>
</li>
<li>
<a href="https://youtu.be/syXuWv1PZRg"
>Video: RChain Education - Implementation of Simple Rholang
language</a
>
</li>
</ul>
</div>
<div class="divider">
<div></div>
</div>
<h2>Previous Hackathons:</h2>
<ul>
<li>
<a
class="external ext"
href="https://github.com/mitmedialab/OpenMediaLegalHack/wiki/How-To-Use-RChain"
>RSong at MIT Media Lab</a
>
OpenMediaLegalHack - #hack4music on October 25, 2018
</li>
</ul>
</div>
</div>
<div id="footer"></div>
<script src="/js/rchain.coop_Browser.js"></script>
<script src="/js/navAndFooter.js?version=11"></script>
</body>
</html>