Skip to content

Instantly share code, notes, and snippets.

View thebalaa's full-sized avatar
❤️
Making self-hosting accessible to grandmothers everywhere.

Mo Balaa thebalaa

❤️
Making self-hosting accessible to grandmothers everywhere.
  • Founder @ Fractal Networks
  • United States
  • X @fractal_mo
View GitHub Profile
leth_sil_localnet | /go-ethereum/build/_workspace/src/github.com/ethereum/go-ethereum/vendor/github.com/syndtr/goleveldb/leveldb/db_compaction.go:804 +0x277
leth_sil_localnet | created by github.com/ethereum/go-ethereum/vendor/github.com/syndtr/goleveldb/leveldb.openDB
leth_sil_localnet | /go-ethereum/build/_workspace/src/github.com/ethereum/go-ethereum/vendor/github.com/syndtr/goleveldb/leveldb/db.go:149 +0x627
leth_sil_localnet |
leth_sil_localnet | goroutine 116 [select]:
leth_sil_localnet | github.com/ethereum/go-ethereum/eth/downloader.(*Downloader).qosTuner(0xc42030a000)
leth_sil_localnet | /go-ethereum/build/_workspace/src/github.com/ethereum/go-ethereum/eth/downloader/downloader.go:1584 +0x33e
leth_sil_localnet | created by github.com/ethereum/go-ethereum/eth/downloader.New
leth_sil_localnet | /go-ethereum/build/_workspace/src/github.com/ethereum/go-ethereum/eth/downloader/downloader.go:231 +0x45c
leth_sil_localnet |
# create an account and unlock it
web3.personal.newAccount('password')
web3.personal.unlockAccount(web3.eth.accounts[0], 'password')
# load bytcode and abi from local file
bytecode = open('provenanve.bytcode', 'r').read()
abi = open('provenanve.abi', 'r').read()
# instantiate and deploy contract
contract = web3.eth.contract(abi, bytecode=bytecode)
elbalaa$ npm run setup
> react-boilerplate@3.4.0 presetup /Users/elbalaa/src/frontend-react
> npm i chalk shelljs
react-boilerplate@3.4.0 /Users/elbalaa/src/frontend-react
├─┬ chalk@1.1.3
│ ├── ansi-styles@2.2.1
│ ├── escape-string-regexp@1.0.5
│ ├─┬ has-ansi@2.0.0
[
{
"model": "client_api.account",
"pk": 1,
"fields": {
"address": "0x60d6df9517f0ed6d03a38beb4898b508c3af176e",
"role": "",
"user": 1,
"name": "",
"description": "",
<?xml version="1.0"?>
<saml2p:Response xmlns:saml2p="urn:oasis:names:tc:SAML:2.0:protocol" Destination="http://sso.tcg.stanford.edu:8000/saml2/acs/" ID="_75a3585f0231334484eff2e628b13540" InResponseTo="id-yUrmWoOcV0nTihY12" IssueInstant="2017-04-06T00:17:31.700Z" Version="2.0">
<saml2:Issuer xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion">https://idp.stanford.edu/</saml2:Issuer>
<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#">\n<ds:SignedInfo>\n<ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>\n<ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>\n<ds:Reference URI="#_75a3585f0231334484eff2e628b13540">\n<ds:Transforms>\n<ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/>\n<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>\n</ds:Transforms>\n<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>\n<ds:DigestValue>t/3RKZeFUbhR920bRKutbaXSnco=</ds:DigestValue>\n</ds:Reference>\n
pragma solidity ^0.4.9;
contract MultiPartyContract {
// a multi-party document `authenticity` scheme where by
// the 3 hard-coded owners are certifying the authenticity of a single document
address constant owner1 = 0x0;
address constant owner2 = 0x0;
address constant owner3 = 0x0;
pragma solidity ^0.4.4;
contract suVerify {
mapping(uint256 => address) credentials;
function addCredential(uint256 hash, address owner){
credentials[hash] = owner;
}