Skip to main content

Create and verify luckyposts

Project description

Luckypost

A luckypost is a compact human-readable text-based data structure designed for decentralized and trust-less authenticated public text-based discussion.

This is a Python library for creating, parsing and verifying luckyposts, it also provides a basic command-line interface.

This library is intended to be used by luckynet clients.

Installation

You'll need a Python interpreter along with the pip package installer.

python -m pip install luckypost

Usage

A command-line interface is provided to access the library's functionality, this is intended for luckynet developers, not users (but users are welcome to use it if they want).

Hello world

python -m luckypost create en.test authorname "<Hello world!"

The user will then be prompted to enter their passphrase, alternatively it can be specified on the command line with the -p argument.

Verification

python -m luckypost verify "2022-04-20 05:06:21 en.test authorname <Hello world! @afw43if2j7b5r34ktfpiasofk5jg2zo3gqhlcl6s2hre2xl7ntbba !a16+K7HPXucuCQMiV4676N43VLFzFpU1RBLDgdhFJgNrHYm8NBqz85pnWLYTv9PjsnWcut33CtY13vEY54ycUY5rJhA"

If the given luckypost is authentic then its ID and POWER levels will also be shown.

PoW mining

python -m luckypost mine a afw43if2j7b5r34ktfpiasofk5jg2zo3gqhlcl6s2hre2xl7ntbba

The a is the type of hashing algorithm to use, in this case SHA256.

Extensions and their respective POWER levels will be printed out as higher-levelled nonces are discovered.

Using

Take the extension and include it when creating a post using the -x argument.

python -m luckypost create en.test authorname "<Hello world!" -x pabzPrL12m

Environmental impact

Luckypost is not a cryptocurrency, proof-of-work calculations are only used to distinguish an account from those belonging to spammers. There is no financial incentive to mine higher POWER levels.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

luckypost-0.9.3.tar.gz (23.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

luckypost-0.9.3-py3-none-any.whl (24.0 kB view details)

Uploaded Python 3

File details

Details for the file luckypost-0.9.3.tar.gz.

File metadata

  • Download URL: luckypost-0.9.3.tar.gz
  • Upload date:
  • Size: 23.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.10

File hashes

Hashes for luckypost-0.9.3.tar.gz
Algorithm Hash digest
SHA256 2311046b4ede11660561b3405db73c9e867afbf388bd84d156d7b7d91eeba19c
MD5 8947fcf68bc10fa38a92c04f63b6fe9a
BLAKE2b-256 f0c9d02bd06677fdc56abf737ced243136d4515aaee777000574d05fe00abfe1

See more details on using hashes here.

File details

Details for the file luckypost-0.9.3-py3-none-any.whl.

File metadata

  • Download URL: luckypost-0.9.3-py3-none-any.whl
  • Upload date:
  • Size: 24.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.10

File hashes

Hashes for luckypost-0.9.3-py3-none-any.whl
Algorithm Hash digest
SHA256 771faffd47e3f0f38ff6c6ba6f3730b4732c3dc45019807113eb6d671106ff75
MD5 87b5513d197074c5afae10e4d8fe9ea2
BLAKE2b-256 8f396544fd3b7acd5eab52b2313aec2cffa0d017aef945804f6f89b162e8ed2f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page