Skip to main content

Nostr crypto primitives and relay client for autonomous agents

Project description

lobstr-core

Nostr crypto primitives and relay client for autonomous agents.

Pure Python BIP340 Schnorr signatures and secp256k1 point arithmetic with zero external dependencies.

Install

pip install lobstr-core

For websocket relay support, install with the optional extra:

pip install lobstr-core[websocket]

Note: If you're using lobstrd, websocket support is included automatically.

Usage

import secrets
from lobstr.core.nostr_crypto import pubkey_gen_xonly, schnorr_sign

secret = secrets.token_bytes(32)
pubkey = pubkey_gen_xonly(secret)

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

lobstr_core-0.5.0.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

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

lobstr_core-0.5.0-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file lobstr_core-0.5.0.tar.gz.

File metadata

  • Download URL: lobstr_core-0.5.0.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for lobstr_core-0.5.0.tar.gz
Algorithm Hash digest
SHA256 91ee31b44436fd32dd2899d3eff23f75dea0633acc23933b6559553714367fa0
MD5 377e978fa7d464a65019f2c9e95dc483
BLAKE2b-256 1fca5605dbd8566cfafe9410d3b887cdf3ad25b5914016b5befff5f9421bce70

See more details on using hashes here.

Provenance

The following attestation bundles were made for lobstr_core-0.5.0.tar.gz:

Publisher: publish.yml on zoidbergZA/lobstr

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file lobstr_core-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: lobstr_core-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for lobstr_core-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 865a5714ac8a89c6a0f989644acda576f236f7ae43bde8289f1efeb984044c9c
MD5 ed00df4dfffbbb17633b52187ccd163a
BLAKE2b-256 8c41a933b0dd84a6a1854bcd20c7cb7633df4d5fe788b11144a038317e9050b2

See more details on using hashes here.

Provenance

The following attestation bundles were made for lobstr_core-0.5.0-py3-none-any.whl:

Publisher: publish.yml on zoidbergZA/lobstr

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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