godprotocol
Version:
A distributed computing environment for Web 4.0 — integrating AI, decentralisation, and virtual computation.
18 lines (13 loc) • 331 B
JavaScript
class Block {
constructor(meta, chain) {
this.content = meta.content;
this.chain = chain;
this.index = chain.blocks.length;
}
sync = async () => {
this.address = `${this.chain.physical_address}:${this.index}`;
await this.generate_hash();
};
generate_hash = async () => {};
}
export default Block;