bsv-sdk 0.6.0 → 0.6.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 +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/bsv/transaction/beef.rb +6 -2
- data/lib/bsv/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c0fdbd1bc0a1b9c7cb675618e0bf4c53bdbaaeb90c95313ddbdcf033e7155297
|
|
4
|
+
data.tar.gz: 1f3086221b1de1fae836d0012230f78660b24ac9bf3db48d13a086246ab63286
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4d29ed638d0c13091c5b3f52ece97ea1bbbe70a8f67b4a407c914f2f6e0250104fc258b58b6b0a7beb1357794abe053a102565dbe0ef8011cd76b9d5df8010e6
|
|
7
|
+
data.tar.gz: 7052ec60f715e6a44997c1f1489a1eb43675a7e8a9ca7b5d30aa6a7a31b946430d973216e07bc8b1cf792d495e0fd73cb73252a6308c0017c83a8cfc13234e5a
|
data/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.6.1] - 2026-04-05
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- **Transaction** — use internal byte order for Atomic BEEF subject txid lookup, fixing serialisation of transactions loaded from Atomic BEEF format.
|
|
13
|
+
|
|
8
14
|
## [0.6.0] - 2026-04-04
|
|
9
15
|
|
|
10
16
|
### Added
|
data/lib/bsv/transaction/beef.rb
CHANGED
|
@@ -121,7 +121,9 @@ module BSV
|
|
|
121
121
|
raise ArgumentError, "truncated Atomic BEEF: need 36 bytes at offset #{offset}, got #{remaining}"
|
|
122
122
|
end
|
|
123
123
|
|
|
124
|
-
|
|
124
|
+
# Atomic BEEF stores the subject txid in internal byte order (little-endian
|
|
125
|
+
# hash order), matching JS and Go SDKs. Reverse to display order for internal use.
|
|
126
|
+
beef.instance_variable_set(:@subject_txid, data.byteslice(offset, 32).reverse)
|
|
125
127
|
offset += 32
|
|
126
128
|
inner_version = data.byteslice(offset, 4).unpack1('V')
|
|
127
129
|
offset += 4
|
|
@@ -198,7 +200,9 @@ module BSV
|
|
|
198
200
|
# @return [String] raw Atomic BEEF binary
|
|
199
201
|
def to_atomic_binary(subject_txid)
|
|
200
202
|
buf = [ATOMIC_BEEF].pack('V')
|
|
201
|
-
|
|
203
|
+
# Write subject txid in internal byte order (reverse of display order),
|
|
204
|
+
# matching JS and Go SDK conventions for Bitcoin binary formats.
|
|
205
|
+
buf << subject_txid.b.reverse
|
|
202
206
|
buf << to_binary
|
|
203
207
|
buf
|
|
204
208
|
end
|
data/lib/bsv/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bsv-sdk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.6.
|
|
4
|
+
version: 0.6.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Simon Bettison
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date: 2026-04-
|
|
10
|
+
date: 2026-04-05 00:00:00.000000000 Z
|
|
11
11
|
dependencies: []
|
|
12
12
|
description: A Ruby library for interacting with the BSV Blockchain — keys, scripts,
|
|
13
13
|
transactions, and more.
|