这样消除了同一份代码出现在两处的不良结构,避免了同步的困难。 当 node.server 需要临时修改 ActionXxx.js 时,只要在 server.js 里临时 require('../tic.action').ActionXxx 即可。一处修改,到处可用。
27 lines
758 B
JavaScript
27 lines
758 B
JavaScript
'use strict'
|
||
/**
|
||
Layer 2
|
||
1.从链上申请取得余额锁定证明或者额度锁定证明Proof of Locked(POL)
|
||
LockProof
|
||
{
|
||
hash: '0x12324tgw423fa23hrio2uhiut32gt823i4uth243i9',
|
||
amount: 100,
|
||
blockHeight: 10086,
|
||
blockHash: '0xweg34ga243yt54yh543hj65tbxfdgbxdfbx',
|
||
actorAddress: 'TARbCVuy5g2u2uUYGVIUYyvuIUvhj3',
|
||
actorPubkey: '8912rbiu2341t98o43bguierg98374h7tou34trnh32io87g7ayub',
|
||
actorSignature: 'iu12b3ru32tqoknhiaubwefvbuwfibw',
|
||
packerPubkey: 'aopiwhgawe9igawonibirugnbiuwehnsjc'
|
||
packerSignature: '0xuihg87324hfuiweaoigwnhjriaerwogireabhwg',
|
||
expire: 100 //100块后作废
|
||
}
|
||
2.应用层验证POL,检查是否标准,是否过期
|
||
*/
|
||
/*
|
||
聚合交易
|
||
{
|
||
actorAddress:[],
|
||
toAddress:[]
|
||
}
|
||
*/
|