Skip to content

Instantly share code, notes, and snippets.

View jimscarver's full-sized avatar

Jim Whitescarver jimscarver

View GitHub Profile
@jimscarver
jimscarver / gist:df30648c2e999d0e8cf9
Created March 6, 2015 00:47
Verifying that +jimscarver is my openname (Bitcoin username). https://onename.com/jimscarver
Verifying that +jimscarver is my openname (Bitcoin username). https://onename.com/jimscarver
### Keybase proof
I hereby claim:
* I am jimscarver on github.
* I am jimscarver (https://keybase.io/jimscarver) on keybase.
* I have a public key whose fingerprint is E837 62E5 0699 A10B F1D5 7563 0305 761F 4BC4 90ED
To claim this, I am signing this object:
new makeKVStore, stdout(`rho:io:stdout`) in {
// User call to make a new key-value store
contract makeKVStore(return) = {
new storeCh, this in {
// Give back reference to the created KVstore
return!(*this) |
/ Rholang Abstract Graph Node Object exposing properties and links, gaving an object wrapper, super, and public key
// Nodes can be used for hierarchical directories with loops suitable for use with graphql providing for user name spaces.
// simple Object capability wrapper proxy
// prevents direct access to object model channels
new Object, stdout(`rho:io:stdout`) in {
contract Object(class, @instance, ret) = {
new this in {
ret!(bundle+{*this}) |
//instance methods
contract this(@method, args) = {

Keybase proof

I hereby claim:

  • I am jimscarver on github.
  • I am jimscarver (https://keybase.io/jimscarver) on keybase.
  • I have a public key whose fingerprint is B104 52B5 F197 5F7E 2CDC BFB6 6F9A 0757 7103 12A2

To claim this, I am signing this object:

<script>
const revBalance = addr => `
new return, rl(\`rho:registry:lookup\`), RevVaultCh, vaultCh in {
rl!(\`rho:rchain:revVault\`, *RevVaultCh) |
for (@(_, RevVault) <- RevVaultCh) {
@RevVault!("findOrCreate", "${addr}", *vaultCh) |
for (@maybeVault <- vaultCh) {
match maybeVault {
(true, vault) => @vault!("balance", *return)
(false, err) => return!(err)
new return(`rho:rchain:deployId`), lookup(`rho:registry:lookup`), ret, alicePurseCh, bobPurseCh,
initialAlicePurseBalanceCh, initialBobPurseBalanceCh,successCh, finalAlicePurseBalanceCh,
finalBobPurseBalanceCh, stdout(`rho:io:stdout`) in {
lookup!( `rho:id:rgd9xzheeo33tn765wjijox7kd7ciar4jr7qkq9g64n4qmdxxrd35m` , *ret) |
for (mint <- ret) {
stdout!("got mint") |
match (100000000, 1000) {
(aliceAmt, bobAmt) => {
stdout!("got init bals") |
// Alice's purse has maximum balance.
<!DOCTYPE html>
<!-- saved from url=(0029)https://iancoleman.io/shamir/ -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Shamir Secret Sharing Scheme</title>
<style>/*!
* Bootstrap v3.3.6 (http://getbootstrap.com)
* Copyright 2011-2015 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/