Skip to content

Instantly share code, notes, and snippets.

View shubhodeep9's full-sized avatar
:shipit:
Debugging and learning Elixir

Shubhodeep Mukherjee shubhodeep9

:shipit:
Debugging and learning Elixir
View GitHub Profile
@ryzokuken
ryzokuken / merkle.js
Last active July 30, 2022 15:57
TypeScript Merkle Tree Implementation
const hash = require('easy-crypto/hash');
class MerkleTreeNodeGeneric {
compare(node) {
return this.hash === node.hash;
}
}
class MerkleTreeChildNode extends MerkleTreeNodeGeneric {
constructor(data) {