Skip to content

Instantly share code, notes, and snippets.

View ben-chain's full-sized avatar

Ben Jones ben-chain

View GitHub Profile
print("Bens ESP8266 starting up!")
cfg={}
cfg.ssid="neu"
cfg.pwd="secretsharing"
print(cfg.ssid)
wifi.ap.config(cfg)
wifi.setmode(wifi.SOFTAP) --access point, broadcasts like a rounter
-- cfg = config settings for this
n = 100; --Number of people needed to come together.
--Make this high so it's obvious it needs to be set
print("Bens ESP8266 starting up!")
cfg={}
cfg.ssid="neu"
cfg.pwd="secretsharing"
print(cfg.ssid)
wifi.ap.config(cfg)
wifi.setmode(wifi.SOFTAP) --access point, broadcasts like a rounter
-- cfg = config settings for this
n = 100; --Number of people needed to come together.
--Make this high so it's obvious it needs to be set
print("Bens ESP8266 starting up!")
cfg={}
cfg.ssid="neu"
cfg.pwd="secretsharing"
print(cfg.ssid)
wifi.ap.config(cfg)
wifi.setmode(wifi.SOFTAP) --access point, broadcasts like a rounter
-- cfg = config settings for this
n = 100; --Number of people needed to come together.
--Make this high so it's obvious it needs to be set
print("Bens ESP8266 starting up!")
cfg={}
cfg.ssid="neu"
cfg.pwd="secretsharing"
print(cfg.ssid)
wifi.ap.config(cfg)
wifi.setmode(wifi.SOFTAP) --access point, broadcasts like a rounter
-- cfg = config settings for this
n = 100; --Number of people needed to come together.
--Make this high so it's obvious it needs to be set
print("Bens ESP8266 starting up!")
cfg={}
cfg.ssid="neu"
cfg.pwd="secretsharing"
print(cfg.ssid)
wifi.ap.config(cfg)
wifi.setmode(wifi.SOFTAP) --access point, broadcasts like a rounter
-- cfg = config settings for this
n = 100; --Number of people needed to come together.
--Make this high so it's obvious it needs to be set
print("Bens ESP8266 starting up!")
cfg={}
cfg.ssid="neu"
cfg.pwd="secretsharing"
print(cfg.ssid)
wifi.ap.config(cfg)
wifi.setmode(wifi.SOFTAP) --access point, broadcasts like a rounter
-- cfg = config settings for this
n = 100; --Number of people needed to come together.
--Make this high so it's obvious it needs to be set
@ben-chain
ben-chain / init.lua
Created February 20, 2015 03:37
ESP8266 Secret-Sharing
print("Bens ESP8266 starting up!")
cfg={}
cfg.ssid="neu"
cfg.pwd="secretsharing"
print(cfg.ssid)
wifi.ap.config(cfg)
wifi.setmode(wifi.SOFTAP) --access point, broadcasts like a rounter
-- cfg = config settings for this
n = 100; --Number of people needed to come together.
--Make this high so it's obvious it needs to be set
@ben-chain
ben-chain / init.lua
Created February 20, 2015 03:37
ESP8266 Secret-Sharing
print("Bens ESP8266 starting up!")
cfg={}
cfg.ssid="neu"
cfg.pwd="secretsharing"
print(cfg.ssid)
wifi.ap.config(cfg)
wifi.setmode(wifi.SOFTAP) --access point, broadcasts like a rounter
-- cfg = config settings for this
n = 100; --Number of people needed to come together.
--Make this high so it's obvious it needs to be set
@ben-chain
ben-chain / PlasmaChain.v.py
Created January 30, 2019 01:04
Denomination Logic in PG Plasma
def depositETH():
weiMuiltiplier: uint256 = 10**self.weiDecimalOffset
depositAmount: uint256 = as_unitless_number(msg.value) * weiMuiltiplier
...
def depositERC20(tokenAddress: address, depositSize: uint256):
...
tokenMultiplier: uint256 = 10**self.listings[tokenType].decimalOffset
depositInPlasmaCoins: uint256 = depositSize * tokenMultiplier
...
def finalizeExit(exitID: uint256, exitableEnd: uint256):
@ben-chain
ben-chain / transfer.js
Created January 30, 2019 01:08
PG Plasma Transfer Schema
...
const TransferSchema = new Schema({
 sender: {
  type: Address,
  required: true
 },
 recipient: {
  type: Address,
  required: true
 },