Skip to main content

fayda_decoder 0.1.0 copy "fayda_decoder: ^0.1.0" to clipboard
fayda_decoder: ^0.1.0 copied to clipboard

Offline decoder and signature verifier for the QR code on the Ethiopian Fayda national ID card. Community port; not affiliated with NIDP.

0.1.0 #

First release.

Decoding #

  • decodePayload parses Fayda V4 QR text into a sealed FaydaResult with typed fields; one malformed field becomes null instead of failing the parse. Passes the shared upstream test vectors.
  • isFaydaPayload cheaply filters barcode-scanner callbacks.
  • decodeImage and decodeImageData decode photos with a grayscale and upscale retry pipeline; decodeImageInBackground and decodeImageDataInBackground run it on an isolate (inline on the web).
  • RgbaImage.fromLuminance and RgbaImage.fromBgra accept camera package frames from Android and iOS.
  • Pluggable QrScanner; the default ZxingQrScanner is pure Dart and repairs zxing2's handling of non-ASCII (Ethiopic) text.

Verification #

  • verifySignature and FaydaSuccess.verify() check the detached RS256 JWS against the bundled NIDP V4 key or a key you supply.

Developer experience #

  • Value equality and toJson / FaydaResult.fromJson round-trips.
  • FaydaFields.formattedFan, age and ageAt.
  • Redacted toString() and payload-free error messages.
  • package:fayda_decoder/testing.dart: buildTestPayload, buildTestQrPng, buildTestQrImage and faydaTestPublicKeyPem for tests without real cards.
  • fayda_decoder command-line tool.
  • Flutter example app with camera, gallery and sample-card flows.
1
likes
160
points
0
downloads
screenshot

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Offline decoder and signature verifier for the QR code on the Ethiopian Fayda national ID card. Community port; not affiliated with NIDP.

Repository (GitHub)
View/report issues
Contributing

Topics

#ethiopia #fayda #national-id #qr-code #kyc

License

MIT (license)

Dependencies

crypto, image, zxing2

More

Packages that depend on fayda_decoder