bip329_labels 2.0.0
bip329_labels: ^2.0.0 copied to clipboard
A Dart implementation for Flutter of BIP-329: Wallet Labels Export Format for Bitcoin wallets.
2.0.0 #
- Breaking —
OutputLabel.spendableis nowbool?(was requiredbool): per BIP-329spendableis optional and "if omitted, the importing wallet should not alter these values", so an omittedspendablenow parses tonull(the spec's "do not alter" state) instead of throwing — previously a valid BIP-329 output record withoutspendablefailed to parse. Consumers reading the field must handlenull(e.g. checkspendable == falsefor an explicitly do-not-spend output). - Serialization omits null/absent fields (
ignoreNull): optional fields that are null are no longer emitted as"field": null; they are omitted, matching the spec's examples, and an absentspendableround-trips as absent. - Tooling: SDK floor raised to Dart
^3.8.0(minimum required byflutter_lints ^6.0.0);dart_mappableruntime constraint unchanged (^4.6.0) so consumer compatibility is otherwise preserved.
1.0.1 #
- remove linter infos from example
1.0.0 #
- Core Features:
- All 6 label types:
tx,addr,pubkey,input,output,xpub - Required fields:
type,ref,label - Optional fields:
origin,spendable - JSON serialization/deserialization with dart_mappable
- All 6 label types:
- Additional Fields Support:
- Transaction fields:
height,time,fee,value,rate - Address fields:
keypath,heights - Input/Output fields:
keypath,value,fmv,height,time
- Transaction fields:
- JSON Lines Format:
Bip329Label.toJsonLines()- Export to newline-delimited JSONBip329Label.fromJsonLines()- Import from newline-delimited JSON- Full BIP-329 specification compliance