certichain

Blockchain built from scratch for verifying document's legitimacy.
Log | Files | Refs | README | LICENSE

ModeNameSize
-rw-r--r--.gitignore16L
-rw-r--r--LICENSE177L
-rw-r--r--Makefile23L
-rw-r--r--NOTICE5L
-rw-r--r--README.md12L
-rw-r--r--api/dto/dto.go102L
-rw-r--r--api/handlers/blocks.go117L
-rw-r--r--api/handlers/blocks_test.go190L
-rw-r--r--api/handlers/health.go32L
-rw-r--r--api/handlers/helpers_test.go111L
-rw-r--r--api/handlers/institution.go88L
-rw-r--r--api/handlers/institution_test.go138L
-rw-r--r--api/handlers/transactions.go162L
-rw-r--r--api/handlers/transactions_test.go158L
-rw-r--r--api/handlers/verify.go78L
-rw-r--r--api/handlers/verify_test.go89L
-rw-r--r--api/middleware.go90L
-rw-r--r--api/middleware_test.go71L
-rw-r--r--api/respond/respond.go35L
-rw-r--r--api/router.go38L
-rw-r--r--api/server.go50L
-rw-r--r--cmd/certi/anchor.go132L
-rw-r--r--cmd/certi/init.go117L
-rw-r--r--cmd/certi/main.go49L
-rw-r--r--cmd/certi/verify.go65L
-rw-r--r--cmd/node/main.go128L
-rw-r--r--go.mod26L
-rw-r--r--go.sum47L
-rw-r--r--internal/blockchain/block.go127L
-rw-r--r--internal/blockchain/blockchain.go391L
-rw-r--r--internal/blockchain/blockchain_test.go689L
-rw-r--r--internal/blockchain/helpers_test.go160L
-rw-r--r--internal/blockchain/iterator.go79L
-rw-r--r--internal/crypto/did.go82L
-rw-r--r--internal/crypto/hash.go115L
-rw-r--r--internal/crypto/keys.go161L
-rw-r--r--internal/mempool/mempool.go209L
-rw-r--r--internal/mempool/mempool_test.go682L
-rw-r--r--internal/merkle/helper_test.go83L
-rw-r--r--internal/merkle/merkle_test.go225L
-rw-r--r--internal/merkle/proof.go129L
-rw-r--r--internal/merkle/proof_test.go157L
-rw-r--r--internal/merkle/tree.go166L
-rw-r--r--internal/merkle/tree_test.go65L
-rw-r--r--internal/registry/registry.go115L
-rw-r--r--internal/registry/registry_test.go252L
-rw-r--r--internal/storage/badger.go255L
-rw-r--r--internal/storage/memory.go227L
-rw-r--r--internal/storage/storage_test.go192L
-rw-r--r--internal/storage/store.go99L
-rw-r--r--internal/transaction/transaction.go216L
-rw-r--r--internal/transaction/transaction_test.go386L