https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1078.md eip title author discussions-to status type category created requires 1078 Universal login / signup using ENS subdomains Alex Van de Sande <avsa@ethereum.org> https://ethereum-magicians.o…
核心数据结构: core.types.transaction.go type Transaction struct { data txdata // caches hash atomic.Value size atomic.Value from atomic.Value } Transaction.data type txdata struct { AccountNonce uint64 `json:"nonce" gencodec:"required"` Pric…
虚拟货币钱包 钱包顾名思义是存放$$$.但在虚拟货币世界有点不一样,我的帐户资讯(像是我有多少钱)是储存在区块链上,实际存在钱包中的是我的帐户对应的 key.有了这把 key 我就可以在虚拟货币世界证明我的身份.就可以更改我帐户的状态(像是送钱给别人).这样来说,虚拟货币钱包实际上是管理和储存 key 的工具.这把 key 就是我的私钥,而帐户是从我的公钥衍伸出来. -Ledger 虚拟货币钱包- BIP32, BIP39, BIP44 BIP 全名是 Bitcoin Improvement P…
https://github.com/PhABC/EIPs/blob/is-valid-signature/EIPS/eip-1271.md Standard Signature Validation Method for Contracts eip title author discussions-to status type category created 1271 Standard Signature Validation Method for Contracts Francisco G…
https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1.md 介绍了什么是EIP等等的详细信息: eip title status type author created 1 EIP Purpose and Guidelines Active Meta Martin Becze <mb@ethereum.org>, Hudson Jameson <hudson@ethereum.org>, and others https:/…
https://github.com/ethereum/EIPs/blob/master/EIPS/eip-100.md 创世纪区块的难度是131,072,有一个特殊的公式用来计算之后的每个块的难度.如果某个区块比前一个区块验证的更快,以太坊协议就会增加区块的难度. 区块的难度影响nonce,它是在挖矿时必须要使用proof-of-work算法来计算的一个hash值. 区块难度和nonce之间的关系用数学形式表达就是: Hd代表的是难度. 找到符合难度阈值的nonce唯一方法就是使用proof-…
https://github.com/ethereum/EIPs/blob/master/EIPS/eip-712.md eip title author discussions-to status type category created requires 712 Ethereum typed structured data hashing and signing Remco Bloemen <remco@wicked.ventures>, Leonid Logvinov <logv…
https://github.com/ethereum/EIPs/blob/master/EIPS/eip-191.md eip title author status type category created 191 Signed Data Standard Martin Holst Swende (@holiman), Nick Johnson <arachnid@notdot.net> Draft Standards Track ERC 2016-01-20 摘要 这个ERC提议了一个…
EIP 161: State trie clearing - makes it possible to remove a large number of empty accounts that were put in the state at very low cost as a result of earlier DoS attacks. With this EIP, 'empty' accounts are removed from the state whenever 'touched'…
eip title author type category status created 55 Mixed-case checksum address encoding Vitalik Buterin Standards Track ERC Final 2016-01-14 Specification(python) from ethereum import utils def checksum_encode(addr): # Takes a -byte binary address as i…
https://github.com/ethereum/EIPs/blob/master/EIPS/eip-725.md eip title author discussions-to status type category created 725 Proxy Identity Fabian Vogelsteller (@frozeman) https://github.com/ethereum/EIPs/issues/725 Draft Standards Track ERC 2017-10…
eip title author type category status created 170 Contract code size limit Vitalik Buterin Standards Track Core Final 2016-11-04 Hard fork Spurious Dragon Parameters FORK_BLKNUM: 2,675,000 CHAIN_ID: 1 (main net) Specification If block.number >= FORK_…
什么是ERC20 token 市面上出现了大量的用ETH做的代币,他们都遵守REC20协议,那么我们需要知道什么是REC20协议. 概述 token代表数字资产,具有价值,但是并不是都符合特定的规范. 基于ERC20的货币更容易互换,并且能够在Dapps上相同的工作. 新的标准可以让token更兼容,允许其他功能,包括投票标记化.操作更像一个投票操作 Token的持有人可以完全控制资产,遵守ERC20的token可以跟踪任何人在任何时间拥有多少token.基于eth合约的子货币,所以容易实施.只…
Livepeer Whitepaper 分布式视频流媒体传输协议及经济激励 Doug Petkanics doug@livepeer.org Eric Tang eric@livepeer.org 翻译 Elnino Wang elninowang@qq.com 摘要 Livepeer项目旨在提供一种完全去中心化.高度可扩展.加密Token激励的实时视频流网络协议,并产生一种解决方案,该解决方案可以作为去中心化式开发(Web3)堆栈中的实况媒体层.此外,LIVEPER旨在为任何现有的直播提供一种…
Introduction A lot of applications use digital images, and with this there is usually a need to process the images used. If you are building your application with Python and need to add image processing features to it, there are various libraries you…
Android客户端和PHP.MySQL搭建的服务器之间的简单交互,实现登录功能 . 实现原理图: Handler消息机制原理: Handler机制主要包括4个关键对象,分别是Message.Handler.MessageQueue.Looper. 下面对这4个关键对象进行简单的介绍. 1.Message Message是线程之间传递的消息,它可以在内部携带少量的信息,用于在不同线程之间交换数据.Message的what字段可以用来携带一些整型数据,obj字段可以携带一个Object对象. 2.…
在很多的Android项目中都需要用户登录.注册.这样的话在开发中做好保护用户密码的工作就显得尤为重要.这里我把自己的密码保护方法记录下来. 这是我建了一个保存密码的文件,以便于检查自己保存密码或者上传到服务器的时候密码是否已经被保护了.这就是当我输入用户名和密码之后点击记住密码之后 保存在SD卡上的文件,打开之后可以明显的看到密码已经被保护了. 下面是我的布局文件以及主程序的代码: <RelativeLayout xmlns:android="http://schemas.android…
1. 使用Backbone实现前端hash路由 登录注册页面如下: 初步设想将注册和登录作为两个不同的url实现,但登录和注册功能的差距只有form表单部分,用两个url实现显然开销过大,所以最终方案为使用hash作为前端路由,根据url的hash值切换相应的表单显示. 很多致力于SPA开发的前端框架都具备hash路由功能,考虑到嗨猫本身是一个类博客.偏重静态展示的网站,所以最后选择了轻量级的Backbone最为前端框架. Backbone实现hash路由的代码很简单: let $formBox…
目录控制: public/index.php: $di['aclResource']=function(){ return include_once '../app/config/frontbackAcl.php'; }; $di['dispatcher'] = function(){ $eventManager = new \Phalcon\Events\Manager(); $securyDeep = new SecurityDeep(); $eventManager->attach("…
Installing MySQL Server Here we will learn how to Compile and Install the MySQL Server from source code. After that we will Configure our server for basic functionality and Secure it for general usage. Finally we will discuss the Basics of MySQL Serv…
参考:http://bootsnipp.com/tags/login Register Page   127.8K 187 Modal Login with jQuery Effects   159.2K 210 Custom Login, Registration & Forgot Password   171.8K 113 Clean Modal Login Form   160.5K 184 Login and Register tabbed form   151.7K 175 Googl…
上一节里我们讲了如何用Yii2搭建一个能够给App提供数据的API后台应用程序.那么今天我们就来探讨下授权认证和通过API接口向服务器提交数据以及如何控制API接口返回那些数据,不能返回那些数据. 授权认证 业务分析 我们先来了解一下整个逻辑 用户在客户端填写登录表单 用户提交表单,客户端请求登录接口login 服务端校验用户的帐号密码,并返回一个有效的token给客户端 客户端拿到用户的token,将之存储在客户端比如cookie中 客户端携带token访问需要校验的接口比如获取用户个人信息接…
rpc接口调用以太坊智能合约 传送门: 柏链项目学院   在以太坊摸爬滚打有些日子了,也遇到了各种各样的问题.这几天主要研究了一下如何通过rpc接口编译.部署和调用合约.也遇到了一些困难和问题,下面将向大家分享. rpc接口调用智能合约 先来编写一个简单的智能合约 contract Multiply7 { event Print(uint); function multiply(uint input) returns (uint) { Print(input * 7); return input…
前言 目前区块链是互联网中最最火的风口,没有之一.我周围的很多朋友也加入了“炒币”行列,但很不幸,几乎都被“割韭菜”了.而经过我的几天研究,发现,如果自己要发行一种空气币,简直太简单了.只需要下面几个步骤: 1.使用MetaMask 2.找Solidity代码模板 3.部署智能合约 4.空气币转账测试 一.MetaMask 在Chrome浏览器的网上应用店搜索MetaMask,如下图所示,如果搜到小狐狸logo的插件就对了,这就是以太坊浏览器(如果有无法打开Chrome网上应用店的朋友,就去搜索…
实现简单的web框架 流程: 服务端启动---服务端等待请求---客户端访问---服务端响应请求 代码: from wsgiref.simple_server import make_server #处理请求 def application(environ, start_response):#响应头 start_response('200 OK', [('Content-Type', 'text/html')])#响应内容 return [b'<h1>Hello, web!</h1>…
ERC165: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-165.md 就是一种发布并能检测到一个智能合约实现了什么接口的标准 这么做的原因: it is sometimes useful to query whether a contract supports the interface and if yes, which version of the interface, in order to adapt the way i…
https://blog.zeppelin.solutions/the-hitchhikers-guide-to-smart-contracts-in-ethereum-848f08001f05 这个是简单的介绍 Hitchhiker’s Guide to Smart Contracts in Ethereum Smart Contract security in Ethereum is hard “Smart contracts are pretty difficult to get righ…
前言: 在使用solidity写智能合约的时候,会使用到revert和require来进行断言,比如: require(tokenOwner[tokenId] == 0x0,'this is not the first create'); 在上面的断言中,只有当你满足了tokenOwner[tokenId] == 0x0这个 条件,你才能继续往下执行,否则就会报错“this is not the first create”. 然后当我们使用remix这个编译器的时候,是能够在出错的时候得到rea…
http://kodeinfo.com/post/laravel-authentication-packages LARAVEL AUTHENTICATION PACKAGES By Imran Iqbal In Authentication, Packages - September 3,2014 - Comments(0) - Views(2515) Tags : laravel packages, laravel authentication, laravel authentication…
EIP: Title: Claim Holder Author: Fabian Vogelsteller (@frozeman) Type: Standard Category: ERC Status: Discussion Created: -- https://github.com/ethereum/EIPs/issues/735 Abstract The following describes standard functions for adding, removing and hold…