ATLBitLab / twelvecash

API for creating BIP-353 usernames
https://twelve.cash
MIT License
22 stars 5 forks source link

Random generated user names #20

Closed chdwlch closed 3 months ago

chdwlch commented 3 months ago

Uses a random name generator library to make adjective_animal. Retries a few times just in case there is a collision. ~500,000 combinations available

curl -X POST http://localhost:3000/v2/record -H "Content-Type: application/json" -d  '{"domain": "12cash.dev", "lno": "lno123...xyz","sp": "sp123...xyz","onChain": "bc1p...xyz","custom": [{"prefix": "lnurl","value": "lnur123...xyz"},{"prefix": "veggie","value": "carrot"}]}'
{"message":"Bip353 Address Created","bip353":"empty_cougar@regtest.12cash.dev"}
netlify[bot] commented 3 months ago

Deploy Preview for 12cashdev ready!

Name Link
Latest commit 311d4681cb97cf41d5d453c8535fed9a33aa8a73
Latest deploy log https://app.netlify.com/sites/12cashdev/deploys/66966ac8022f7d00083aa20d
Deploy Preview https://deploy-preview-20--12cashdev.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

chdwlch commented 3 months ago

Added dot separator

curl -X POST http://localhost:3000/v2/record -H "Content-Type: application/json" -d  '{"domain": "12cash.dev","lno": "lno123...xyz","sp": "sp123...xyz","onChain": "bc1p...xyz","custom": [{"prefix": "lnurl","value": "lnur123...xyz"},{"prefix": "veggie","value": "carrot"}]}'
{"message":"Bip353 Address Created","bip353":"organisational.iguana@regtest.12cash.dev"}