View karma-link-github-eth-address.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Karma has a Github integration which lets us index your Github contributions. All your contributor activity is | |
linked to your wallet address. Please post a signed message below to link your wallet address to your github account. |
View delegators-griff.eth.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Subgraph Page: https://thegraph.com/hosted-service/subgraph/show-karma/dao-delegates | |
Query: | |
{ | |
delegatorOrganizations( | |
first: 1000, | |
//skip:1000, | |
where:{ | |
organization: "ens", | |
delegate: "0x839395e20bbb182fa440d08f850e6c7a8f6f0780" | |
} |
View attestation.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I contributed to the Semaphore Trusted Setup Multi-Party Ceremony. | |
The following are my contribution signatures: | |
Circuit: semaphore24 | |
Contributor # 349 | |
Hash: 7cb5305a c34dd2ba 2d3cb87d 54884cf8 | |
3ba41a60 0882bdcc 9d583dc0 136309bc | |
f8d77e6f b1ee5803 2f2d5b8d 3620ad52 | |
faffb3f3 aec21610 ff856214 1b847189 | |
View index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
abi = JSON.parse('[{"constant":true,"inputs":[{"name":"candidate","type":"bytes32"}],"name":"totalVotesFor","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"candidate","type":"bytes32"}],"name":"validCandidate","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"bytes32"}],"name":"votesReceived","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"candidateList","outputs":[{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"candidate","type":"bytes32"}],"name":"voteForCandidate","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"candidateNames","type":"bytes32[]"}],"payable":false,"stateMutability":"nonpa |
View index.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Hello World DApp</title> | |
<link href='https://fonts.googleapis.com/css?family=Open Sans:400,700' rel='stylesheet' type='text/css'> | |
<link href='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css' rel='stylesheet' type='text/css'> | |
</head> | |
<body class="container"> | |
<h1>A Simple Hello World Voting Application</h1> | |
<div class="table-responsive"> |
View MyContract.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.18; | |
contract MyContract { | |
mapping(address => uint) totalTokens; | |
function buy() payable public { | |
totalTokens[msg.sender] = msg.value; | |
} |
View hash_migration.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Voting = artifacts.require("./Voting.sol"); | |
var ECRecovery = artifacts.require("./ECRecovery.sol"); | |
const sigUtil = require("eth-sig-util") | |
var alice_vote_hash = sigUtil.typedSignatureHash([{ type: 'string', name: 'Message', value: "Vote for Alice"}]) | |
var bob_vote_hash = sigUtil.typedSignatureHash([{ type: 'string', name: 'Message', value: "Vote for Bob"}]) | |
var carol_vote_hash = sigUtil.typedSignatureHash([{ type: 'string', name: 'Message', value: "Vote for Carol"}]) | |
module.exports = function(deployer) { |
View Voting.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.18; | |
import "./ECRecovery.sol"; | |
contract Voting { | |
using ECRecovery for bytes32; | |
mapping (bytes32 => uint8) public votesReceived; | |
mapping(bytes32 => bytes32) public candidateHash; |
View submit_vote.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.submitVote = function(candidate) { | |
let candidateName = $("#candidate-name").val(); | |
let signature = $("#vote-signature").val(); | |
let voterAddress = $("#voter-address").val(); | |
$("#msg").html("Vote has been submitted. The vote count will increment as soon as the vote is recorded on the blockchain. Please wait.") | |
Voting.deployed().then(function(contractInstance) { | |
contractInstance.voteForCandidate(candidateName, voterAddress, signature, {gas: 140000, from: web3.eth.accounts[0]}).then(function() { |
View sign_vote.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.voteForCandidate = function(candidate) { | |
let candidateName = $("#candidate").val(); | |
let msgParams = [ | |
{ | |
type: 'string', // Any valid solidity type | |
name: 'Message', // Any string label you want | |
value: 'Vote for ' + candidateName // The value to sign | |
} | |
] |
NewerOlder