Skip to content

Instantly share code, notes, and snippets.

View maurelian's full-sized avatar
💯

Maurelian maurelian

💯
View GitHub Profile
@maurelian
maurelian / ens-reg.md
Last active November 8, 2016 06:36
ERC: Initial Registrar for the Ethereum Name Service

Initial Registrar for the Ethereum Name Service

EIP: Draft 
Title: Initial Registrar for the Ethereum Name Service 
Author: J. Maurelian and Nick Johnson
Status: Draft
Type: Informational
Created: <date created on, in ISO 8601 (yyyy-mm-dd) format>
@maurelian
maurelian / ENS-faq.md
Last active November 25, 2016 19:24
ENS comments, questions and concerns

Questions to answer

  1. Should funds be donated to the Foundation instead of burned?
  • maybe just the 0.1% bidding cost?
  1. Nameprep isn't enforced anywhere within the contracts, placing the onus on the client to properly implement it. This seems like a security/spoofing/phishing concern.
  2. Who will own the ENS rootnode?
  3. How can I be sure that person won't just
@maurelian
maurelian / poseur.md
Last active December 3, 2016 03:25
In the .eth registrar: What happens when your bid value is less than your payment?

OK, so here's what it looks like happens when the value of the bid is higher than the amount submitted.

  1. When you submit a new bid, a deed contract is created. The full amount of ether you submitted (let's say 3 ETH) is sent to that Deed.

  2. When you then unseal your bid, revealing the value of your actual bid (let's say 3 ETH) one of two things can happen:

    1. The current highest bid for foobarbaz.eth is 4 ETH. You do not win. The registrar thus closes the deed, refunding 99.9% of the amount submitted.
  3. The current highest bid for foobarbaz.eth is 2 ETH. You are the highest bidder so far! In this case, the registrar will try to update the balance held by the deed, a

@maurelian
maurelian / nameprep-search.md
Last active February 4, 2022 02:56
Nameprep/stringprep library search

Nameprep search

Issue

Cannot find a maintained implementation of name prep for the registrar package

Options

1. Use existing libraries:

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@maurelian
maurelian / console.sol
Last active February 25, 2022 18:44
A JS style console.log() function for solidity.
pragma solidity ^0.4.10;
// Update: Just use HardHat's: https://github.com/nomiclabs/hardhat/blob/master/packages/hardhat-core/console.sol
// Enables event logging of the format `console.log('descriptive string', variable)`,
// without having to worry about the variable type (as long as an event has been declared for that type in the
// Console contract.
contract Console {
event LogUint(string, uint);
@maurelian
maurelian / ens-steps.md
Last active May 12, 2017 15:56
ENS steps

A rough outline from my ENS walkthrough.

scenarios:

Every hash in the registrar is in one of 5 modes:

  • Open
  • Auction
  • Owned
  • Reveal
  • NotYetAvailable
@maurelian
maurelian / test.sh
Created July 14, 2017 20:00
run solidity coverage's testrpc with larger balances.
#! /bin/bash
# Simpler version of https://github.com/OpenZeppelin/zeppelin-solidity/master/scripts/test.sh
echo "Starting our own testrpc-sc node instance"
# we give each account 1M ether, needed for high-value tests
./node_modules/ethereumjs-testrpc-sc/bin/testrpc --gasLimit 0xfffffffffff --port 8555 \
--account="0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501200,1000000000000000000000000" \
--account="0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501201,1000000000000000000000000" \
--account="0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501202,1000000000000000000000000" \
@maurelian
maurelian / SimpleMultisigReview.md
Last active August 16, 2017 23:53
Review of SimpleMultisig