采用新结构:Action*.js 从 node.server 中删除,集中存放于本库。
这样消除了同一份代码出现在两处的不良结构,避免了同步的困难。
当 node.server 需要临时修改 ActionXxx.js 时,只要在 server.js 里临时 require('../tic.action').ActionXxx 即可。一处修改,到处可用。
This commit is contained in:
26
ActionLockProof.js
Normal file
26
ActionLockProof.js
Normal file
@@ -0,0 +1,26 @@
|
||||
'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:[]
|
||||
}
|
||||
*/
|
||||
Reference in New Issue
Block a user