Skip to content

Commit

Permalink
bc: remove md5 and verifyHash
Browse files Browse the repository at this point in the history
  • Loading branch information
Moldovan, Georgia committed Apr 20, 2022
1 parent fa447cd commit ad8e7d2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion blockchain/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ const { startMultichainDaemon, configureChain } = require("./createChain");

const {
moveBackup,
verifyHash,
verifyHashSha256,
removeFile,
createMetadataFileSha256,
Expand Down
4 changes: 0 additions & 4 deletions blockchain/src/shell.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
const shell = require("shelljs");
const fs = require("fs");
const { version } = require("../package.json");
const { md5Dir } = require("./md5");
const { sha256Dir } = require("./sha256");

const logger = require("./log/logger");

const verifyHash = async (backupDirectoryHash, extractPath) =>
(await md5Dir(extractPath)) === backupDirectoryHash;

const createMetadataFileSha256 = async (
chainName,
Expand Down Expand Up @@ -66,7 +63,6 @@ const moveBackup = async (multichainDir, extractPath, chainName) => {
};

module.exports = {
verifyHash,
createMetadataFileSha256,
verifyHashSha256,
moveBackup,
Expand Down

0 comments on commit ad8e7d2

Please sign in to comment.