branta 3.1.0
branta: ^3.1.0 copied to clipboard
A Branta SDK for Dart.
3.1.0 #
- Complete rewrite to achieve feature parity with
branta-dotnetandbranta-jsv3.1.0 - Replaced
BrantaConfigwithBrantaClientOptions(addsprivacy,hmacSecret,defaultApiKey) - Added
PrivacyModeenum (strict/loose); strict is the default - Split HTTP layer into
BrantaClient(raw HTTP) andBrantaService(orchestration) getPaymentsAsyncandgetPaymentsByQrCodeAsyncnow returnPaymentsResult(payments +verifyUrl)addPaymentAsyncnow returnsAddPaymentResult(payment + secret +verifyUrl)- Added ZK support: hash-based deterministic encryption for bolt11 and ark addresses; secret-based for bitcoin addresses
QRParserrewritten to support combined QR codes (bitcoin:+lightning=/ark=params),branta_id/branta_secret, and plain-text address detectionPaymentBuilder.setZk()marks the last destination as ZK and assigns a UUIDzkIdverifyUrlincludes#k-{zkId}={key}fragments for each decrypted ZK destination- Removed
json_serializable/build_runnerin favour of hand-writtenfromJson/toJson - Added
Platformmodel andparentPlatform/btcPayServerPluginVersionfields onPayment
1.0.0 #
- SDK parity with
branta-core:getPaymentsAsync,getZKPaymentsAsync,addPaymentAsyncnow return/throwBrantaPaymentExceptionon errors instead of silently returning empty lists addPaymentAsyncthrowsBrantaPaymentException('Unauthorized')when no API key is configuredgetPaymentsAsyncvalidatesplatformLogoUrldomain against configuredbaseUrlto prevent open redirect attacks- Payments returned from all fetch methods now include a
verifyUrlbuilt from the configured base URL - Address parameter in
getPaymentsAsyncis now URL-encoded - Added
DestinationTypeenum andtypefield onDestination - Added CI/CD workflow via GitHub Actions
0.0.3 #
- #10 Add
.pubignoreto exclude development files (tests, Makefile, CLAUDE.md) from the published package
0.0.2 #
0.0.1 #
- Initial version.