Reward server (raw Node, no deps) #14
Labels
No labels
area/ads
area/backend
area/ci
area/game
area/shell
game/barrel-climb
game/block-drop
game/centipede-garden
game/frog-crossing
game/hex-breaker
game/hive-invaders
game/maze-muncher
game/missile-shield
game/orbit-defender
game/snake-arena
good-first-issue
priority/high
priority/low
priority/medium
status/blocked
type/art
type/bug
type/chore
type/docs
type/feature
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
NetDagger/arcade#14
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Server-verified rewarded ads, same model as Hexosphere. Lives in
server/, plain Nodehttpmodule, no npm dependencies.Flow
POST /api/reward/start {game, reward}-> one-time token (random 128-bit, stored server-side with issue time, game, reward, client fingerprint).POST /api/reward/claim {token}-> succeeds only if the token is unused, not expired and at leastminWatchSecondshave passed since issue.Acceptance criteria
node server/index.jsruns on a clean Node LTSnode:test