Namebump

Namebump is a registrationless key-value store where names are claimed using public-key signatures. Storage is limited per IP address, requiring renewal as IPs change. Unused names are bumped over time if not renewed.

import namebump
import asyncio

async def main():
# Generate your public key.
kp = namebump.Keypair.generate()

# Save a value at a unique name (must be unique.)
await namebump.put("your unique name", "value", kp)

# Get your val back -> value.
value = await namebump.get("your unique name")

# Delete it:
await namebump.delete("your unique name", kp)

asyncio.run(main())

You can also make the software only store values if it doesn’t need to bump an existing one but doing this:

await namebump.put(name, val, kp, namebump.DONT_BUMP)

Or make i…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help