@cedulon/audit
比较铁路提取物与收货链和检查站. 解决 没有收据就是发现.
import { audit } from "@cedulon/audit";
const report = audit({ receipts, checkpoints, settlements });
// report.summary is "audit: balanced" or lists findings
窗口的时钟宽限内无法匹配的收据或行数
边缘,没有显示相邻的提取解析度或硬度,为
报告为 boundary-deferred 而不是充电 警告
needs 说明哪个文件可以解决这个问题:
窗口的取出,或指定行的裁判的收据.
import { auditWindows } from "@cedulon/audit";
const run = auditWindows({ windows: [w0, w1, w2], trust, issuerTrust });
// run.windows: each window's own report; run.findings: what the run adds
auditWindows 连续审计窗口作为一次运行。 每个窗口都能看到它的
邻居的抽取物 放在前一个检查站
窗口的审计证明。 在跑步队自己的发现中,一行被推迟了
当相邻的窗口携带收据时, 内缘或决定
或改为 settlement-without-receipt,并且只在
运行的两个外缘保留运行条件; 每个窗口自己的报告
视窗的审计结果返回。 铁钉,像发行人
指针,取一键或一键列表.
import { checkPresentedForm, presentedInRange } from "@cedulon/audit";
checkPresentedForm(bundle); // [] or { object, member, problem }[]
presentedInRange(input, report, fromMs, toMs); // what was presented in [fromMs, toMs)
checkPresentedForm 对照提交表格式读取组合
审计前的补救草案( "所提交的表格"部分):缺失和未列出
hex和Base64 拼写、编码、对COSE的索赔
octets, 和解码器地板。 它不核查签名.
仓库 : https://github.com/dogrucanemek-alt/cedulon 页面存档备份,存于互联网档案馆