Ai
1 Star 0 Fork 0

XYCode/orbit-db-types

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
LogEntry.d.ts 481 Bytes
一键复制 编辑 原始数据 按行查看 历史
reasv 提交于 2019-10-18 18:13 +08:00 . Change LogEntry into a .d.ts file
interface IdentityJson {
id: string,
publicKey: string,
signatures: {id: string, publicKey: string},
type: string
}
interface LamportClockJson {
id: 'string',
time: number
}
interface LogEntry<T>{
hash: string,
id: string,
payload: { op?: string, key?: string, value: T},
next: string[], // Hashes of parents
v: number, // Format, can be 0 or 1
clock: LamportClockJson,
key: string,
identity: IdentityJson,
sig: string
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/XYCode-XYC/orbit-db-types.git
git@gitee.com:XYCode-XYC/orbit-db-types.git
XYCode-XYC
orbit-db-types
orbit-db-types
main

搜索帮助