Skip to main content

matrix-contracts

Open In Colab

Central repository containing interface contracts, Protocol Buffer definitions, and Pydantic validation schemas for the Distributed Matrix Multiplication platform.

Contract Modules

  1. Contract 1: Discovery & Telemetry (matrix_contracts.schemas.discovery)
    • WorkerAnnouncePayload (Nostr Kind 30000 event schema with lightning_routing_pubkey)
    • WorkerQueryRequest / WorkerQueryResponse
  2. Contract 2: Direct Compute P2P (matrix_contracts.v1.pb2 & pb2_grpc)
    • compute_service.proto: Defines MatrixComputeService gRPC service with RequestTileTask (returns TileTaskAck readiness) and ExecuteTileTask (streaming matrix compute with pre-allocation L402 auth).
  3. Contract 3: Settlement & Fee Split (matrix_contracts.schemas.settlement)
    • CreateHodlInvoiceRequest / CreateHodlInvoiceResponse
    • SettlePaymentRequest
  4. Contract 4: Fraud & Dispute (matrix_contracts.schemas.fraud)
    • FreivaldsFraudProof

Installation

pip install -e .

Regenerating Protobufs

If proto/compute_service.proto is modified, regenerate the Python gRPC stubs:

python -m grpc_tools.protoc -Iproto --python_out=matrix_contracts/proto --grpc_python_out=matrix_contracts/proto proto/compute_service.proto

Metadata

Release files for matrix-contracts 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for matrix-contracts 0.1.0
File Size Uploaded Provenance Actions
matrix_contracts-0.1.0.tar.gz 39.8 kB Without provenance Details for matrix_contracts-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for matrix-contracts 0.1.0
File Interpreter ABI Platform Actions
matrix_contracts-0.1.0-py3-none-any.whl Python 3 none any Details for matrix_contracts-0.1.0-py3-none-any.whl

Total release size: 84.1 kB

Release files / matrix_contracts-0.1.0.tar.gz

Download URL matrix_contracts-0.1.0.tar.gz
Size 39.8 kB
Tags Source
SHA-256 checksum
How to use checksums
953c8c5dd3533b1e71063bdedf84304c93666fdd2454bcd623aa3a371e80f5e4
BLAKE2b-256 checksum
How to use checksums
aa8da0668177a6c602f15ebe3b3937ad21b1db85c18870bf326d290bc26d017b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.8.10

Release files / matrix_contracts-0.1.0-py3-none-any.whl

Download URL matrix_contracts-0.1.0-py3-none-any.whl
Size 44.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
da61c6c539d7937e9543027c9bfc59eae51f76e8adf62d699d05cf4ecb23c608
BLAKE2b-256 checksum
How to use checksums
5ecf37b12e63f766452c7dee57e6f4e1f2df0beeb89832e0edba80f2ebb72933
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.8.10

Security for matrix-contracts 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page