Skip to main content

Open, content-addressed refund references bound into the pinned AlgoVoi substrate (subject_ref + refund result + amount; closes the payment lifecycle after settlement; L1 frozen)

Reason this release was yanked:

software

Project description

algovoi-refund-receipt-lite

Open, content-addressed refund references for the AlgoVoi substrate. The lite, Apache-2.0 origination tier of the commercial AlgoVoi Refund Receipt.

refund_ref = "sha256:" + SHA-256(JCS({ refund_amount, refund_result, subject_ref }))

It content-addresses the refund of a prior payment into a deterministic, recomputable reference:

  • subject_ref — the payment/decision being refunded, imported by hash. Typically the guardrail_ref of the pre-payment decision or a settlement reference, so the refund composes onto the decision chain and closes the lifecycle after settlement.
  • refund_result — a closed enum: FULL, PARTIAL, REJECTED.
  • refund_amount — the amount returned, as a string ("0" for a REJECTED refund).

All three fields are byte-load-bearing: change the subject, the result, or the amount and the refund_ref diverges, so a refund cannot be silently re-pointed to another payment and neither the outcome nor the amount can be changed. A result outside the enum, or an empty subject_ref/refund_amount, is rejected, not hashed.

Use

from algovoi_refund_receipt_lite import refund_ref

ref = refund_ref(
    subject_ref="sha256:2a444c629892f44fde1bd004aba9be01dd6cc7fe251eecdd545b82dca9f0bf97",
    refund_result="FULL",
    refund_amount="1000",
)

Lite vs commercial

Lite (this package) Commercial Refund Receipt
Licence Apache-2.0, open Commercial OEM
Reference content-addressed refund_ref the same, Falcon-1024 signed receipt
Carries result + amount + subject (by hash) + provider, timing, jurisdiction
Propagation bring your own closes original payment across settlement + retention chains
Verifier recompute offline maintained verifier

Adopters (pin → key)

If you build on algovoi-refund-receipt-lite, pin ==0.1.0, anchor a canonical refund_ref vector hash from refund_receipt_lite_v1, and keep the NOTICE, you qualify for a free v0 licence key for algovoi-mandate-auditor. The gate is scripts/check_v0_adoption.py. Apply: email chopmob@gmail.com with your import-by-hash evidence and a copy of the NOTICE.

Conformance

The refund_receipt_lite_v1 vector set is published in the public corpus, chopmob-cloud/algovoi-jcs-conformance-vectors, with Python and Node runners. Python and TypeScript reproduce every value byte-for-byte. rf-001, rf-002 and rf-003 refund the ALLOW guardrail_ref in spend_guardrail_lite_v1 / spend_decision_chain_v1.

Apache-2.0. Additive over the frozen canonicalisation substrate; sole AlgoVoi authorship.

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

algovoi_refund_receipt_lite-0.1.0.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

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

algovoi_refund_receipt_lite-0.1.0-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file algovoi_refund_receipt_lite-0.1.0.tar.gz.

File metadata

File hashes

Hashes for algovoi_refund_receipt_lite-0.1.0.tar.gz
Algorithm Hash digest
SHA256 664acb10d176932248ed0d580c52c2c8f918cacd189cc8f4b097e6b0b048b544
MD5 8701ae2a6b336af662c34b04359140b7
BLAKE2b-256 0e067b3199b2b58bb5d5a705b68443f9751a8439e1a578d91bbb299cff72b4d0

See more details on using hashes here.

File details

Details for the file algovoi_refund_receipt_lite-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for algovoi_refund_receipt_lite-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 52c2ec0edcf2885658ed35569114c8f627a7cc82429f442d4dfd46ae80511c1b
MD5 69407a014b0991cc5583b7d86b807614
BLAKE2b-256 db328b130350751af53b2c0698ed5a47995064ce1f92dd9a1a868085f2168c83

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