@purebet/sports-betting-wallet-nickname

1.0.5 • Public • Published

sports-betting-wallet-nickname

Hash any wallet address to a sports betting related nickname

Any Solana or EVM wallet address can be deterministrically hashed to a nickname in the format [descriptor] [nationality] [sportsman, position, or sport-/gambling-related person]. There are 11 million combos but it is technically not collision-resistent. This is hashing, not encrption - you cannot go from nickname to wallet. The dictionaries cannot be modified or it will result in a different hash to everyone else using this function. Solana wallet addresses are hashed as they are. EVM addresses remove the "0x" prefix if present and convert the address to lowercase in order to handle different input formats.

To use:

  1. npm i @purebet/sports-betting-wallet-nickname
  2. const {hashWallet} = require("@purebet/sports-betting-wallet-nickname") or import hashWallet from "@purebet/sports-betting-wallet-nickname"
  3. const nickname = hashWallet(walletAddress)
  4. ensure a wallet address of "0" hashes to "Greedy Swedish Running-Back"

Message pure_lmao on Discord with any questions.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.51latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.51
1.0.40
1.0.30
1.0.20
1.0.11
1.0.00

Package Sidebar

Install

npm i @purebet/sports-betting-wallet-nickname

Weekly Downloads

2

Version

1.0.5

License

ISC

Unpacked Size

21.6 kB

Total Files

10

Last publish

Collaborators

  • purebet_dev