Sign In

@winwithpickr/verify

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@winwithpickr/verify

Independently verify winwithpickr giveaway results

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

@winwithpickr/verify

Independently verify any @winwithpickr giveaway result from your terminal.

Same algorithm that runs on the server and in the browser verification page — single source of truth, zero trust required.

Usage

npx @winwithpickr/verify \
  --seed <64-char-hex> \
  --pool <id,id,...> \
  --winners <n> \
  --expected-hash <hash>

The seed, pool IDs, and pool hash are all available on the giveaway's verification page (linked from every result tweet).

Example

npx @winwithpickr/verify \
  --seed aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa \
  --pool 111,222,333,444,555 \
  --winners 2 \
  --expected-hash aa6e12495e487da59aea17fa4be1654953ccfdc6d1c6cf9280a1c61411e3a01d
── Pickr Verification ──

Seed:        aaaaaaaaaa...
Pool size:   5
Pool hash:   aa6e12495e487da59aea17fa4be1654953ccfdc6d1c6cf9280a1c61411e3a01d
Winners:     111, 333

Expected:    aa6e12495e487da59aea17fa4be1654953ccfdc6d1c6cf9280a1c61411e3a01d
Match:       YES

Exits with code 0 on match, 1 on mismatch.

Options

FlagRequiredDescription
--seedYes64-character hex seed from the result page
--poolYesComma-separated X user IDs (sorted, from the result page)
--winnersNoNumber of winners (default: 1)
--expected-hashNoPool hash to verify against — exits 1 on mismatch
--helpNoShow usage

How it works

  • The pool IDs are sorted lexicographically and hashed with SHA-256 to produce the pool hash
  • The first 8 bytes of the hex seed initialize a java.util.Random-compatible LCG
  • A Fisher-Yates shuffle is run over the pool using that LCG
  • The first N entries of the shuffled pool are the winners

This is the exact same algorithm used by the winwithpickr service. The implementation lives in pickr-core (Kotlin Multiplatform, MIT licensed) — the JVM server, browser verification page, and this CLI all compile from the same source.

Also available as

  • Java JARjava -jar pickr-verify.jar — download from GitHub Releases
  • Browser — every result tweet links to a verification page that runs this check client-side
  • Kotlin librarySeededRandom.shuffle(pool, seed) via Maven/Gradle

License

MIT

Keywords

giveaway

FAQs

Package last updated on 27 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts