tic-traction/ActionLockProof.js
luk.lu 4fe26a0b09 采用新结构:Action*.js 从 node.server 中删除,集中存放于本库。
这样消除了同一份代码出现在两处的不良结构,避免了同步的困难。
当 node.server 需要临时修改 ActionXxx.js 时,只要在 server.js 里临时 require('../tic.action').ActionXxx 即可。一处修改,到处可用。
2019-04-09 20:16:58 +08:00

27 lines
758 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

'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:[]
}
*/