Skip to content

Instantly share code, notes, and snippets.

anonymous
anonymous / s4.sol
Created December 3, 2015 20:30
Created using soleditor: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://chriseth.github.io/browser-solidity?gist=
// s4 : Swarm
contract swarm {
struct Member { bool exists; }
struct Claim {
uint unproven;
address[] refutors;
@jtremback
jtremback / universal-payment-channels.md
Last active February 27, 2022 13:47
Universal Payment Channels
anonymous
anonymous / datagotchi
Created October 15, 2015 13:25
Created using soleditor: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://chriseth.github.io/browser-solidity?gist=
// @title: Datagotchi
// @author: Doug A <d11e9@turkd.net>
// @desc: distributed data modeling
contract datagotchi {
struct HashedResponse {
address creator;
bytes32 hashedReponse;
anonymous
anonymous / content
Created October 12, 2015 10:08
Created using soleditor: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://chriseth.github.io/browser-solidity?gist=
import "github.com/d11e9/avatar/contracts/avatar.sol";
contract Archive is owned {
struct Content {
bool exists;
address OP;
bytes32[] archives;
anonymous
anonymous / RevokableOwned
Created October 9, 2015 20:08
Created using soleditor: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://chriseth.github.io/browser-solidity#gist=
import "owned";
contract RevokableOwned is owned {
address previousOwner;
uint8 revokableV;
bytes32 revokableR;
bytes32 revokableS;
// In order to make a contracts ownership revokeable you must
anonymous
anonymous / content
Created October 9, 2015 13:35
Created using **soleditor**: Realtime Ethereum Contract Compiler and Runtime. Load this file https://chriseth.github.io/browser-solidity#gist=
import "owned";
contract Archive is owned {
struct Content {
bool exists;
address OP;
bytes32[] archives;
}
@zelig
zelig / gist:6a3dad0babaf1cbabf33
Last active September 30, 2015 18:30
Swarm. Abstract for talk on DEVCON ONE
Swarm is a distributed storage platform and content distribution service, a native base layer service of the ethereum web 3 stack. The primary objective of Swarm is to provide a sufficiently decentralized and redundant store of Ethereum's public record, in particular to store and distribute Đapp code and data as well as block chain data. From an economic point of view, it allows participants to efficiently pool their storage and bandwidth resources in order to provide the aforementioned services to all participants.
From the end user's perspective, Swarm is not that different from WWW, except that uploads are not to a specific server. The objective is to peer-to-peer storage and serving solution that is DDOS-resistant, zero-downtime, fault-tolerant and censorship-resistant as well as self-sustaining due to a built-in incentive system which uses peer to peer accounting and allows trading resources for payment. Swarm is designed to deeply integrate with the devp2p multiprotocol network layer of Ethereum as wel
@holiman
holiman / spam.md
Last active July 16, 2018 16:09
Description of how Ethereum can be used to fight spam

Stopping spam

This blog post by Jonathan Brown suggested replacing SMTP with Ethereum blockchain; specifically, utilizing the log channel to monitor events.

With this approach, emails wouldn't actually be stored within the EVM (Ethereum Virtual Machine) storage, but every email would still be present in the blockchain blocks. The EVM log mechanism would make it simple for a full node to monitor and be alerted whenever an email was submitted.

I don't believe that this would be feasible in the real world, for several reasons

  • There are lots of email being sent, some of them quite large
  • Most people wouldn't want their emails forever on the blockchain, the future resiliency of GPG is unknown, and GPG encryption does not provide perfect forward secrecy. Once a key is compromised, all is revealed.
@jorisbontje
jorisbontje / inviteme.py
Created September 8, 2014 18:46
Tox InviteMe Bot
#!/usr/bin/env python
#
# @file echo.py
# @author Wei-Ning Huang (AZ) <aitjcize@gmail.com>
#
# Copyright (C) 2013 - 2014 Wei-Ning Huang (AZ) <aitjcize@gmail.com>
# All Rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by