From 25479969621233030d277889b7edcc71fdfeba9b Mon Sep 17 00:00:00 2001 From: Alexandr Lozovyuk Date: Thu, 31 Jan 2019 14:18:41 +0200 Subject: [PATCH] Delete index.d.ts --- index.d.ts | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 index.d.ts diff --git a/index.d.ts b/index.d.ts deleted file mode 100644 index 516e5b4..0000000 --- a/index.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -declare module 'merkletreejs' { - interface IOptions { - isBitcoinTree: boolean - } - - interface IProof { - position: 'left' | 'right' - data: Buffer - } - - export default class MerkleTree { - getRoot: () => Buffer - getLeaves: () => Buffer[] - getLayers: () => Buffer[] - getProof: (leaf: Buffer, index?: number) => IProof[] - verify: (proof: IProof[], targetNode: Buffer, root: Buffer) => boolean - constructor( - leaves: Buffer[], - hashAlgorithm: (data: any) => Buffer, - options?: IOptions - ) - } -}