Open hats-bug-reporter[bot] opened 2 months ago
v1 profiles can create humanity on any one of the multiple chains.
They can't do that if they are registered on V1, they would be challenged. As per registration rules:
As per contest rules are excluded:
Github username: -- Twitter username: -- Submission hash (on-chain): 0x308ed898fad8c5c9eb9ac810756a163fba8f60d54974b2c599ab6a4b419086c5 Severity: high
Description: Description
When a profile transfers its humanity to another chain using the
CrossChainProofOfHumanity::transferHumanity
function, the humanity on the main chain is deleted to ensure that only one instance of humanity exists across all chains in POHv2.If a humanity profile is already registered on the receiving chain at the time of transfer, the profile is not created on that chain for the same reason.
During a transfer to the Ethereum chain, the
ProofOfHumanityExtended::ccGrantHumanity
function is called. This function includes anif condition
to check whether the humanity is already claimed on the Ethereum chain:The
forkModule
contract’sisRegistered
function only verifies four conditions:Whether it has been removed from the ForkModule.
@> return registered && block.timestamp < expirationTime && submissionTime < forkTime;