Skip to content

Play3rZer0/TokenClaim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

TokenClaim

A token claim contract that allows any token creator to distribute tokens to their users. Claimants can get tokens if they are able to verify user address, passcode, and secret.

This is something that the developers should have in an off-chain database that stores information about the token users. The data is hashed so tht it is not raw and revealed to the public since it is stored on-chain.

The token claim must verify the hash value that is passed from the parameter input.

bytes32 hashValue2 = keccak256(abi.encode(_addr, _passcode, _secret));

If the hashValue is equal to hashValue2 the claim is considered valid. If not, the user will be rejected and no tokens can be claimed.

Releases

No releases published

Packages

 
 
 

Contributors