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.1.tar.gz (8.3 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.1-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for algovoi_refund_receipt_lite-0.1.1.tar.gz
Algorithm Hash digest
SHA256 984cb743265c26d365e9947f3bb8bac6a1667ac1e78a8169cbe26b9deea487a7
MD5 59f009e765d3595f7bd5338c5ec32041
BLAKE2b-256 4b0e6579a69d46fc332648fcd76da309ec63115f96f77583db1a49473e3072ca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for algovoi_refund_receipt_lite-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e4ca2638a9ff89ca59c8bb4909ab046c3b6bdafb4921829e7d12b611b2700a8a
MD5 05685940e524e025bc3bbd1705bd2c68
BLAKE2b-256 394212765f8af581ee77d53c9ce71f182b1bc759c748df85933f3c5db2e6a102

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