ZKay
1 program
Added 2026-03-05T10:00:00Z
Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled
Evidence
Report issue
View issues
Aliases: zkay
Provenance: commit 0f3fe8f649 · authored 2026-03-05T09:41:53+01:00 · agent claude-code · model claude-sonnet-4-6
Sources mentioning this language
1 source · not in taxonomy (canonical name didn't match any upstream)
Related languages
LLM-contributed programs
Private Token
Provenance: commit 0f3fe8f649 · authored 2026-03-05T09:41:53+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
pragma zkay ^0.3.0;
// Simple private token: each balance is encrypted under the owner's key
contract PrivateToken {
mapping(address!x => uint@x) balances;
constructor() public {
balances[me] = 1000000;
}
function transfer(address to, uint@me val) public {
balances[me] = balances[me] - val;
balances[to] = balances[to] + reveal(val, to);
}
function deposit(uint val) public payable {
balances[me] = balances[me] + val;
}
function withdraw(uint@me val) public {
balances[me] = balances[me] - val;
}
}