Skip to content

Instantly share code, notes, and snippets.

View cswenor's full-sized avatar

Christopher Swenor cswenor

  • East Coast Product
  • Boston, MA
View GitHub Profile
@cswenor
cswenor / index.js
Last active October 21, 2023 17:40
require('dotenv').config();
const ARC200 = require("./ARC200.json");
const algosdk = require('algosdk');
const contractId = 6726237;
const balanceAddress = 'C5NZ5SNL5EMOEVKFW3DS3DBG3FNMIYJAJY3U4I5SRCOXHGY33ML3TGHD24';
const algodToken = ''; // Your Algod API token
@cswenor
cswenor / index.main.mjs
Created February 1, 2021 13:00
Build File of the Reach secured loan.
// Automatically generated with Reach 0.1.2
/* eslint-disable no-unused-vars, no-empty-pattern, no-useless-escape, no-loop-func */
export const _version = '0.1.2';
export async function Borrower(ctc, interact) {
const stdlib = ctc.stdlib;
const v0 = await ctc.creationTime();
const v3 = stdlib.protect(stdlib.T_Object({
@cswenor
cswenor / gc.mjs
Created October 28, 2020 12:55
Gift Card Test Runner/Interface
import { loadStdlib } from '@reach-sh/stdlib';
import * as backend from './build/index.main.mjs';
(async () => {
const stdlib = await loadStdlib();
const startingBalance = stdlib.parseCurrency(100);
const accAlice = await stdlib.newTestAccount(startingBalance);
const accBob = await stdlib.newTestAccount(startingBalance);
@cswenor
cswenor / gc.rsh
Created October 28, 2020 12:54
Gift Card Reach Source
'reach 0.1';
export const main = Reach.App(
{ deployMode: 'firstMsg' },
[['Alice', { amt : UInt,
pass: UInt,
getRelay: Fun([], Address) }],
['Relay', { getBob: Fun([], Address),
getPass: Fun([], UInt) }] ],
(Alice, Relay) => {
@cswenor
cswenor / gist:6112dc5c6345be45f4249d5a2aafa544
Created April 8, 2020 17:43
Links for Medical Impact of Blockchain
General Medical:
MedRec: Using Blockchain for Medical Data Access and Permission Management
https://ieeexplore.ieee.org/abstract/document/7573685
MeDShare: Trust-Less Medical Data Sharing Among Cloud Service Providers via Blockchain
https://ieeexplore.ieee.org/abstract/document/7990130
Blockchain-Based Data Preservation System for Medical Data
https://link.springer.com/article/10.1007/s10916-018-0997-3
How blockchain-timestamped protocols could improve the trustworthiness of medical science
https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4866630/
A framework for secure and decentralized sharing of medical imaging data via blockchain consensus
@cswenor
cswenor / gist:ed8bf4d84732748bb8f3d9a8eab3fc72
Created January 12, 2020 12:47
real-group-metadata.json
{"claims":[{"timestamp":1578833226,"type":"ACCOUNT","address":"0x4A47f329f9429EE621e6b359e46fF3B5Ac79E5E7"}],"meta":{"address":"0x9dba468122b12Cd04BF4828c57F67a87Fe03BBf0","signature":"0xfd88d46191c1e8c741f2111660025b2ad8e6bcc5f9c18bdaa3ca69c2e0a9b4544704695fa5b5276163c515917287a216c6bdfeb5a2c257c20a37558efd59eb401b"}}
{"claims":[{"url":"http://blockauthority.com","timestamp":1578832940,"type":"ATTESTATION_SERVICE_URL"},{"timestamp":1578832969,"type":"ACCOUNT","address":"0x9dba468122b12Cd04BF4828c57F67a87Fe03BBf0"}],"meta":{"address":"0x4A47f329f9429EE621e6b359e46fF3B5Ac79E5E7","signature":"0xc38187cdebf5e9269378cc44d830cde523888a00ab4262ffbe643fac22fceae4111f605cb4ba3a42157c72756b9a4278c55575941115a95fcec1065806a5dd751b"}}
{"claims":[{"url":"http://blockauthority.com","timestamp":1577742553,"type":"ATTESTATION_SERVICE_URL"},{"timestamp":1577742574,"type":"ACCOUNT","address":"0x9dba468122b12Cd04BF4828c57F67a87Fe03BBf0"}],"meta":{"address":"0x4A47f329f9429EE621e6b359e46fF3B5Ac79E5E7","signature":"0x9f8ee7b7afd84b47ca79c2cdd49ce2606f014d8cec16f7d9746696f4fc9e45e41a030a8dc709fbad8e11e9ab6025c350b1e7bac439bb0864ba2b7de54d50d8931b"}}

CELO_VALIDATOR_GROUP_ADDRESS=9dba468122b12cd04bf4828c57f67a87fe03bbf0 CELO_VALIDATOR_ADDRESS=4a47f329f9429ee621e6b359e46ff3b5ac79e5e7

### Keybase proof
I hereby claim:
* I am cswenor on github.
* I am convoluted (https://keybase.io/convoluted) on keybase.
* I have a public key ASD0Ga16SdZclE-P6c3jSAFlnMNS2EIP76Jup0Tu7ThcSQo
To claim this, I am signing this object: