Skip to content

Instantly share code, notes, and snippets.

View onokatio's full-sized avatar
🏠
Working from home

onokatio onokatio

🏠
Working from home
View GitHub Profile
body {
background-image: url("back.jpg");
background-repeat: no-repeat;
background-attachment: fixed;
background-position: center center;
background-size:cover;
}
.nav {
background: #000000;
color: #ffffff;
@onokatio
onokatio / plasma.md
Last active September 25, 2019 05:38

軽いアイデア出し

  • 目的 Plasmaの論文で触れられていた2階層以上のPlasmaチェーンについて、本当に意味はあるのか、攻撃方法はあるのか、実装はどうすればいいのかなどを考え実際に実装してみる。

  • 通常のEthereumはチューリング完全にワールドステートを変更する必要があり、そのためユーザーが好きにコードを書け自由に動かせる。

  • これから作るPlasmaチェーンにはVMはいらない。送金の機能と、下位チェーンからのSubbmit block、exit、depositだけ組み込めればいい。

  • Plasma MVPが上位チェーンにしている機能をほぼそのまま実装する。ただ検証や状態変移関数はスマートコントラクトではなくクライント組み込み。 こうすることで、2階層以上のブロックチェーンの実装が非常に簡単になる。

  • Plasma MVPで組み込みPlasmaコントラクトを実装するために一番楽な方法

    • 2 way pegのやり方を真似するのが楽そう
#zmodload zsh/zprof && zprof
if [[ -z "$CTG" ]];then
source ~/.zprofile
fi
if [[ "$TTY" == "/dev/tty1" ]];then
startx > /dev/null 2>&1
# fbterm
elif echo "$TTY" | grep "/dev/tty" ;then
Verifying my Blockstack ID is secured with the address 1CKPRLmYjBEKg8WRXDFQburd91ihGhJ1oS https://explorer.blockstack.org/address/1CKPRLmYjBEKg8WRXDFQburd91ihGhJ1oS
#!/bin/bash
APIKEY=${APIKEY:-"NONE"}
DOMAIN=${DOMAIN:-"NONE"}
VERSION=${VERSION:-"v2"}
command_HTTP=${command_HTTP:-"curl -Ss"}
if [[ "${APIKEY}" == "NONE" ]];then
@onokatio
onokatio / file0.txt
Created May 5, 2018 15:54
高専生が無料で使えるLAMP Webサーバー KosenSpaceでsshfsを使ってみた ref: https://qiita.com/onokatio/items/f6cb6973bda065393d3b
$ sudo pacman -S sshfs
/*! jQuery v3.3.1 | (c) JS Foundation and other contributors | jquery.org/license */
var _jQuery;
!function(e, t) {
"use strict";
"object" == typeof module && "object" == typeof module.exports ? module.exports = e.document ? t(e, !0) : function(e) {
if (!e.document)
throw new Error("jQuery requires a window with a document");
return t(e)
}
: t(e)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
--- main.rc.old 2018-04-20 16:06:02.000000000 +0900
+++ main.rc 2018-04-28 13:32:42.350012349 +0900
@@ -1928,59 +1928,12 @@ style "checkbutton_label" {
}
style "button" {
- xthickness = 4
- ythickness = 4
- # For the sake of sanity style buttons this way
## 物理ボリュームの作成(パーティションをLVM管理下に置く)
pvcreate /dev/sda1
pvcreate /dev/sda2
## 物理ボリュームの解除(パーティションをLVM管理下に置かない)
pvremove /dev/sda1