Skip to content

Latest commit

 

History

History
18 lines (17 loc) · 1.01 KB

File metadata and controls

18 lines (17 loc) · 1.01 KB

tensor-coin

My idea for a hash function and a blockchain based on matrix multiplication (which serves as a computational challenge for GPUs, using CUDA)

Important files

uhash.hpp uhash.cpp
And block{.hpp,.cpp}, chain{.hpp,.cpp}.

Blockchain, polymorphic (runtime CPU/GPU dynamic type) uhash, and validator, built from scratch.

Note that the tensorhash algorithm is only conceptual - it is an example for matrix multiplication intensive hash, and is not optimal.

TODO:

CPU/GPU multithreading, sha256 on the GPU only without re-uploading data, and then, increase MAT_MULT_ITERS.
Coin transactions aren't currently checked - specify how should a transaction look like, save them as a Merkle tree, and add verification functions.
Add specification of chain/block data structures so they can be serialized as a JSON and sent over network to the verifier (auth_wallet).