Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am rjchow on github.
  • I am rjchow (https://keybase.io/rjchow) on keybase.
  • I have a public key ASBdNogRYzoecJvrqdW3jfaeHu1yh9UwbTiEGZi1Cu4f_go

To claim this, I am signing this object:

@rjchow
rjchow / bug_demo.js
Created April 27, 2018 12:55
Uport attestation push bug
/**
This file to be used in the tutorials folder of uport-js repo
Replace PUBLIC_URL with your machine's publicly accessible URL
Run using `node bug_demo.js`
Expected behaviour: The uPort mobile app should show first show a dialog for login then
a dialog displaying an attestation received
Actual behaviour: The uPort mobbile app shows an empty white dialog after the login dialog.
@rjchow
rjchow / TennisGame1.js
Created September 21, 2018 16:14
refactoring-kata
class Player {
constructor(playerName) {
this.name = playerName;
this.score = 0;
}
incrementPoints(increment = 1) {
this.score += increment;
}
@rjchow
rjchow / gist:da44cfe94de9951e3217afe5a9ed871a
Last active December 5, 2018 08:31
Verifying OpenCerts 2.2.0 Contract

Configuration:

Contract Name: DocumentStore

Compiler Text: v0.4.25+commit.59dbf8f1

Optimization Enabled: No

Runs (Optimiser): 200

@rjchow
rjchow / ERC20.sol
Created January 9, 2019 15:02
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.5.2+commit.1df8f40c.js&optimize=false&gist=
pragma solidity ^0.5.0;
import "./IERC20.sol";
import "./SafeMath.sol";
/**
* @title Standard ERC20 token
*
* @dev Implementation of the basic standard token.
* https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md
  • Passes linting
  • Included sample certificate
  • Sample certificate must obviously be a sample certificate
    • Obviously fictitious name
    • Obviously sample signatory images
  • Mobile responsive design
  • Webpack chunking code is correct
    • Has chunking code
  • Same chunking code as the other certificates belonging to that institute

Requirements

  • Support multiple types of identity documents, e.g student id, national id, distributed id, passport, etc
  • Supports multiple instances of identity documents
  • Supports identity documents from various countries
  • Parser should be able to determine the highest scope of identity without knowing all the formats
  • Identity profiles should be maskable to reduce unnecessary disclosure

Ways of solving this

  • Array of recipient identities

SSEC-EQA

qualificationLevel: [ {
  frameworkName: "sg/ssec-eqa/2015"
  frameworkVersion: "2015"
  levelCode: 51
  levelDescription: "Polytechnic Diploma"
  qualificationName: "Diploma in Biomedical Science"
  qualificationDescription: "Learn to integrate and apply biological and chemical sciences knowledge to solve problems that our world faces, including infectious diseases, cancer, neurodegenerative diseases and an increasing demand for better nutrition and safer foods. Our Diploma in Biomedical Science (BMS) combines knowledge from bioinformatics, chemistry, molecular biology, immunology, microbiology, and proteomics to offer innovative solutions to these challenges."
0x625b507726de9342B0dC0103c31C21Cb696A7010
2019-04-24T07:55:18+0000