forked from internetarchive/arklet
-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Labels
wontfixThis will not be worked onThis will not be worked on
Description
Current implementation is basically this:
BETANUMERIC = "0123456789bcdfghjkmnpqrstvwxz"
def generate_noid(length: int) -> str:
return "".join(secrets.choice(BETANUMERIC) for _ in range(length))
and when an ARK is minted we call generate_noid(8) and then just try again if there is a collision
There's no way this is actually good lol, i mean it's not actually the worst but performance would definitely be better if we used numbers or uuids.
https://metacpan.org/dist/Noid/view/noid
37B combinations
Metadata
Metadata
Assignees
Labels
wontfixThis will not be worked onThis will not be worked on