Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/reputation-miner/ReputationMiner.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const PatriciaTree = require("./patricia");
const PatriciaTreeNoHash = require("./patriciaNoHashKey");
const { RetryProvider } = require("../package-utils");

// We don't need the account address right now for this secret key, but I'm leaving it in in case we
// We don't need the account address right now for this secret key, but I'm leaving it in case we
// do in the future.
// const accountAddress = "0xbb46703786c2049d4d6dd43f5b4edf52a20fefe4";
const secretKey = "0xe5c050bb6bfdd9c29397b8fe6ed59ad2f7df83d6fd213b473f84b489205d9fc7";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class MaliciousReputationMinerClaimNoUserChildReputation extends ReputationMiner

// Because the amount is zero (due to our custom getAmount function below), the origin skill proof object and the user child proof object
// will have default (zero) values.
// We set the origin proof here here, (because we want to be able to prove that value), but set the child skill key
// We set the origin proof here, (because we want to be able to prove that value), but set the child skill key
// (which is checked) and leave the other values alone.
// The amount variable represents the change in the reputation being updated, which for a child update is always zero when there is no user child reputation.
// The calculation is therefore self-consistent and will be able to pass respondToChallenge.
Expand Down