bsv-wallet 0.5.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bf66409b10a18ba1c43a05efb6e7909e4ba83a87d4421a68248f3f3174a8483d
4
- data.tar.gz: 2ae27d6080353acb67b11e557e5e38c063abd243e1a36e2bc4c6ee6fa43fc885
3
+ metadata.gz: 3ec8e4dbc04e014ab716a010b3059fa9134ba25718306ede7541bae3f7f3df94
4
+ data.tar.gz: 6b7727694dcaa8136a919f3abe06f65f5b238264a12a395863ddf3cf8c1f3533
5
5
  SHA512:
6
- metadata.gz: ad6a39da955d05c18460291ec2f1e7f56cae7c3a82d32da175477ea62c3e82bfd4dcce11bd9c4a53236b38b6091176badb55b264e05489e71722ab6ca8a651df
7
- data.tar.gz: 3724b1e7cbb060a750eb865688b2859645a7837e05fd964214f2c8852ebd4aa515c8ee1afa51bd9fd50fd7bde0c9aa8299e0766057c40196b169e5f595db82fc
6
+ metadata.gz: 2288b14436eaf937e99c82b79c5c3d001d6e80f28d47d0848da1db309a5714c92398cf50ef1ff30bcaaa17d1f784f70ac8f3ae22340b6ed23276b3bd866e954b
7
+ data.tar.gz: 8adc0b4b11cde0e99727ce95c448b2c724f1cd72ea8835bd27e7ca28c19a6ac27f65fd9a6b1455f5ecd0110f7026c214e9adb8da33ebb1b7f89c8f26cbc64769
@@ -5,6 +5,26 @@ All notable changes to the `bsv-wallet` gem are documented here.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/)
6
6
  and this gem adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## 0.5.1 — 2026-04-11
9
+
10
+ ### Fixed
11
+
12
+ - **Auto-fund coin selection and change use default basket** (#344):
13
+ coin selection and change generation now correctly target the `default`
14
+ basket, matching TS SDK behaviour. Previously, auto-funded transactions
15
+ could select UTXOs from or generate change into the wrong basket.
16
+ - **Normalise protocol name in KeyDeriver** (#262, #263): `compute_invoice_number`
17
+ now applies `.downcase.strip` to the protocol name before building the
18
+ invoice string, matching TS and Go SDK behaviour. Mixed-case or
19
+ whitespace-padded protocol names previously derived different keys.
20
+
21
+ ### Changed
22
+
23
+ - **SDK dependency floor raised** to `bsv-sdk >= 0.10.0` (from 0.9.0)
24
+ to pick up the KeyDeriver normalisation fix in the SDK layer.
25
+
26
+ ---
27
+
8
28
  ## 0.5.0 — 2026-04-11
9
29
 
10
30
  Native UTXO management, coin selection, and automatic change handling.
@@ -137,7 +137,7 @@ module BSV
137
137
  # @param key_id [String]
138
138
  # @return [String]
139
139
  def compute_invoice_number(protocol_id, key_id)
140
- "#{protocol_id[0]}-#{protocol_id[1]}-#{key_id}"
140
+ "#{protocol_id[0]}-#{protocol_id[1].downcase.strip}-#{key_id}"
141
141
  end
142
142
  end
143
143
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module BSV
4
4
  module WalletInterface
5
- VERSION = '0.5.0'
5
+ VERSION = '0.5.1'
6
6
  end
7
7
  end
@@ -610,7 +610,7 @@ module BSV
610
610
  def auto_fund_and_create(args, caller_outputs)
611
611
  release_stale_if_due
612
612
  target = caller_outputs.sum { |o| o[:satoshis] || 0 }
613
- all_spendable = @storage.find_spendable_outputs
613
+ all_spendable = @storage.find_spendable_outputs(basket: 'default')
614
614
  available = all_spendable.select do |o|
615
615
  (o[:derivation_prefix] && o[:derivation_suffix] && o[:sender_identity_key]) ||
616
616
  o[:derivation_type] == :identity
@@ -756,7 +756,7 @@ module BSV
756
756
  params = @storage.find_setting('change_params')
757
757
  return {} unless params
758
758
 
759
- pool_size = @storage.find_spendable_outputs.size
759
+ pool_size = @storage.find_spendable_outputs(basket: 'default').size
760
760
  { pool_size: pool_size, change_params: params }
761
761
  end
762
762
 
@@ -862,7 +862,7 @@ module BSV
862
862
  outpoint: "#{txid}.#{actual_idx}",
863
863
  satoshis: spec[:satoshis],
864
864
  locking_script: locking_script_hex,
865
- basket: nil,
865
+ basket: 'default',
866
866
  tags: [],
867
867
  derivation_prefix: spec[:derivation_prefix],
868
868
  derivation_suffix: spec[:derivation_suffix],
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bsv-wallet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simon Bettison
@@ -29,7 +29,7 @@ dependencies:
29
29
  requirements:
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 0.9.0
32
+ version: 0.10.0
33
33
  - - "<"
34
34
  - !ruby/object:Gem::Version
35
35
  version: '1.0'
@@ -39,7 +39,7 @@ dependencies:
39
39
  requirements:
40
40
  - - ">="
41
41
  - !ruby/object:Gem::Version
42
- version: 0.9.0
42
+ version: 0.10.0
43
43
  - - "<"
44
44
  - !ruby/object:Gem::Version
45
45
  version: '1.0'
@@ -49,7 +49,7 @@ executables: []
49
49
  extensions: []
50
50
  extra_rdoc_files: []
51
51
  files:
52
- - CHANGELOG-wallet.md
52
+ - CHANGELOG.md
53
53
  - LICENSE
54
54
  - lib/bsv-wallet.rb
55
55
  - lib/bsv/wallet_interface.rb
@@ -87,7 +87,7 @@ licenses:
87
87
  metadata:
88
88
  homepage_uri: https://github.com/sgbett/bsv-ruby-sdk
89
89
  source_code_uri: https://github.com/sgbett/bsv-ruby-sdk
90
- changelog_uri: https://github.com/sgbett/bsv-ruby-sdk/blob/master/CHANGELOG-wallet.md
90
+ changelog_uri: https://github.com/sgbett/bsv-ruby-sdk/blob/master/gem/bsv-wallet/CHANGELOG.md
91
91
  rubygems_mfa_required: 'true'
92
92
  rdoc_options: []
93
93
  require_paths: