Repository navigation
Releases
Releases · bmmmm/epcii
v0.3.0
Added
- Web footer and README point to BezahlBrudi by XenGi
(https://bezahlbrudi.jetzt/), a befriended project with the same idea,
for anyone looking for an alternative. web-smoke.mjspins the Content-Security-Policy directives of
web/index.html, parsed the way a browser reads the policy: comments
stripped, the first mention of a directive wins, names case-insensitive,
values compared as a set. Deleting the meta tag, commenting it out,
wideningconnect-srcor prepending a permissive duplicate fail the gate;
before this nothing read the policy at all. README gains a "Privacy"
section separating what the gates hold up from what sharing, copying and
downloading set off, and SECURITY.md puts the web version's data flow in
scope.- Web version at https://bmmmm.github.io/epcii/: the CLI pipeline compiled
to WebAssembly (cmd/epcii-wasm,internal/webapi) behind a static page
(web/) deployed bypages.yml. No server, no storage, no external
resources; share links carry the fields only in the URL fragment. SVG and
PNG downloads are byte-identical to the CLI, enforced by
scripts/web-smoke.mjsin CI. See README "Web". - Web form: name, IBAN, amount and remittance text up front; reference,
BIC, purpose code and the note to the payer fold under "More fields"
(IBAN-only is the SEPA norm). Typed letters never land in the amount
field; pasted ones still reach the validator. A share link from a newer
format version is refused instead of guessed.web-smoke.mjsnow also
greps the page sources for storage APIs, address-bar writes and external
resources.
Changed
- Web: the "More fields" summary no longer spells the four field names out
in a parenthesis. They stay in the summary as a quieter list
(reference · BIC · purpose code · note), which is visible even while
the section is folded, so looking for "BIC" still finds it. The
hierarchy comes from the label's weight, not from dimming the names:
atopacity: 0.7they measured 3.85:1 against the dark background and
would have failed WCAG AA; they now sit at 6.66:1 (dark) and 5.74:1
(light). - Every field refuses invisible characters, not only line breaks: a control
character (ESC, NUL, TAB, DEL, the C1 range) or a format character (bidi
overrides such as U+202E, zero-width space and joiner, BOM) is rejected
with exit 2 and an error naming the field and codepoint, e.g.
beneficiary name contains a control character U+001B. Before, such a
value was encoded as given, and--detailsprinted it raw — an ESC
sequence in--textcould rewrite theiban:line on the terminal while
the QR carried the real IBAN. Names with emoji joined by U+200D are
affected; a no-break space is not. --detailsshows any character without a visible form as its\uXXXX
escape instead of the raw byte, so the verification view can never drive
the terminal it is printed on.--iban,--bic,--purposeand an RF creditor reference in--ref
name a non-ASCII character instead of case-folding it:ſNPAFRPP
(U+017F, long s) was silently turned into the BICSNPAFRPP,
GB82WEſT…into a validGB82WEST…, andRF35ſ12345into the
checksum-validRF35S12345. All are now refused withcontains a non-ASCII character U+017F ('ſ'). Plain ASCII lower case still folds as
before, and a reference that is not an RF claim keeps passing through
verbatim, non-ASCII included.- Web: the QR is inserted as a parsed SVG node instead of an HTML string,
andweb-smoke.mjsnow fails on any HTML string sink in the page sources.
Nothing visible changes; an SVG the page cannot parse shows an error
instead of a stale code. --pngnames its scratch file with a random suffix instead of the
process id. A file planted under the old predictable name
(.out.png.<pid>.tmp) made the write fail with "file exists"; now it is
left alone and the PNG is written regardless. Permissions are unchanged:
new files get whatos.Createwould, replaced files keep their mode.- The PNG scale (8 px per module) is one constant,
render.DefaultPNGScale,
shared by--pngand the web download; behaviour is unchanged.
Fixed
- Web: the download filename is taken from the encoded payload, not from the
IBAN field. Rendering is debounced by 150 ms, so a click inside that window
could saveepc-<new IBAN>.svgcontaining the previous IBAN's code.
web-smoke.mjsgates it. - Web: the share link is built from the encoded result as well, not from the
form. Within the same debounce window "Share" could hand over a link
describing one IBAN next to an SVG encoding the previous one.
web-smoke.mjsgatesshareParams()the way it gatesfileStem(), and
gates the snapshot inrender()that both of them read. - Web: the privacy note no longer says browsers "never send" the #fragment
"to any server". They do not send it in requests, but the link lands in
the browser history like any URL and travels with history sync and
address-bar suggestions. The footer (EN/DE) and README "Web" say so.
v0.2.0
Changed
--refonly normalizes a reference that presents itself as ISO 11649, that
isRFfollowed by two digits. Every other reference belongs to an issuer's
own scheme and now reaches the payload verbatim after trimming surrounding
whitespace:inv-2026-abcstays lower case instead of becoming
INV-2026-ABC, andrfid-77is no longer rejected as a broken creditor
reference.--ibanrejects an IBAN whose country is not a SEPA scheme participant. An
EPC QR code initiates a SEPA credit transfer, so such an IBAN cannot be a
valid target; previously it passed on the mod-97 check alone. The country
table also replaces the generic 15-34 character length check.--amountrefuses a lone1.234as ambiguous and offers both unambiguous
spellings, instead of reporting "more than two decimal places" — a message a
German reader cannot act on.0.125,.123and space-grouped input keep the
plain decimals message.--amountaccepts whole amounts with two or more separator groups as
thousands grouping:1.234.567and1,234,567now parse instead of being
refused.--pngwrites atomically. The encoder renders into a scratch file next to
the target and renames it over the target, so a failure mid-write no longer
leaves a truncated PNG behind or destroys the previous rendering. The result
carries the permissionsos.Createwould have given it (0666 minus umask);
an existing file keeps its own mode and a symlink is still written through.- A field-limit or 331-byte error names combining marks as the cause when the
input carries them. Text pasted from macOS often arrives decomposed, where a
40-letter name is counted as 138 characters with no hint why. --bicenforces the ISO 9362 shape: four letters for the institution, two
for the country, then alphanumerics for location and optional branch.
Added
- Prebuilt binaries for Linux, macOS and Windows on amd64 and arm64, published
with aSHA256SUMSfile whenever av*tag is pushed. They are static
(CGO_ENABLED=0), reproducible in path (-trimpath) and stamped, so
--versionreports the tag. TestMatrixFingerprintspins the QR matrix — version and every module —
against fingerprints generated from upstream piglig/go-qr for every payload
length 0 to 331. The round-trip decoder forgives ECC-repairable damage and
stayed green with mask selection disabled or the dark module missing; this
gate does not.
Fixed
- The ISO 11649 check enforces the standard's 25-character limit, and each
failure names the rule that actually fired instead of blaming mod-97.
RF255390075470345390075470345carries a valid mod-97 remainder and was
accepted before; it is now refused as too long. - Only
RFfollowed by two digits is treated as an ISO 11649 claim. A
reference likeRFAA14,RFQ2026001or a bareRFis no longer forced
through that validation and passes through as an issuer's own value — it is
accepted, but epcii no longer represents it as a checked creditor reference.
RF12, a claim without a body, stays rejected. --ref " "combined with--textno longer trips the mutual-exclusion
check: it is trimmed to empty first.--bic 00000000is rejected instead of being accepted as a placeholder.