mirror of
https://github.com/RoboSats/robosats.git
synced 2024-12-13 19:06:26 +00:00
354e7fc5c7
Endpoint request contains a token. Server checks whether it has enough entropy to be secure (at least 128 bits and >0.7 shannon heterogeneity). Server hashes the token (once as of now) and derives nickname and robohash avatar (goes into static/assets/avatars). Nickname is limited to only adjectives, nouns and 3 digits, restricted to 18 characters long max. The corpus of nicknames is 20 billion big (maybe not enough? nick collision chance can happen, but server will just reply with 400 unless the token matches perfectly too)
8 lines
234 B
Python
8 lines
234 B
Python
from django.urls import path
|
|
from .views import MakeOrder, OrderView, UserGenerator
|
|
|
|
urlpatterns = [
|
|
path('make/', MakeOrder.as_view()),
|
|
path('order/', OrderView.as_view()),
|
|
path('usergen/', UserGenerator.as_view()),
|
|
] |