Skip to main content
Module

x/datastructure/blockChain/helper.d.ts

Implement different Data Structures using TypeScript. Deno Third-party Module.
Go to Latest
File

export type DataType<T> = { key: string value: T}
// singly linked list node classexport type BlockType = { index: number data: DataType<any> time: Date hash: string prevHash: null|string}|null
// singly linked list interfaceexport interface BlockChainApi { length: number createBlock(data: any): boolean search(key: string): boolean|BlockType latestBlock(): boolean|BlockType log(): void; iterator(): Generator checkValidation(): boolean}