Skip to content

Change contractual txid fields to strings in rpc.proto#131

Merged
ChrisSon15 merged 2 commits intobisq-network:mainfrom
stejbac:change-musigrpc-txid-fields-to-strings
Mar 9, 2026
Merged

Change contractual txid fields to strings in rpc.proto#131
ChrisSon15 merged 2 commits intobisq-network:mainfrom
stejbac:change-musigrpc-txid-fields-to-strings

Conversation

@stejbac
Copy link
Contributor

@stejbac stejbac commented Mar 6, 2026

Use strings instead of byte arrays in musigrpc.ContractualTxIds, as it is awkward for the Bisq2 client to reverse the bytes and convert to hex. Returning the raw txid bytes makes things no simpler on either end (even though it is arguably more consistent with the way other SHA256 hashes are represented in most of the protos).

Use strings instead of byte arrays in 'musigrpc.ContractualTxIds', as it
is awkward for the Bisq2 client to reverse the bytes and convert to hex.
Returning the raw txid bytes makes things no simpler on either end (even
though it is arguably more consistent with the way other SHA256 hashes
are represented in most of the protos).
@stejbac
Copy link
Contributor Author

stejbac commented Mar 9, 2026

I've just one more quick change to make in light of bisq-network/bisq2#4497 code review.

Try to keep the field numbers in `rpc.proto` sequential (even though
that breaks wire compatibility), as the corresponding change is being
made in PR bisq-network/bisq2#4497 on the Bisq2
client side.

Also add explicit 'optional' modifiers to message fields where they can
be missing during normal usage of the 'Musig' service. (The modifier is
technically redundant in those cases, and is just for clarity, as the
fields have explicit presence and are already implicitly optional.)
stejbac added a commit to stejbac/bisq2 that referenced this pull request Mar 9, 2026
Reorder the field numbers in 'rpc.proto' to try to keep them sequential
while still in development, even though that breaks wire compatibility.

(The corresponding changes are being made on Rust side in
PR bisq-network/bisq-musig#131.)
@stejbac
Copy link
Contributor Author

stejbac commented Mar 9, 2026

I've additionally reordered rpc.proto field numbers, with corresponding changes on the Bisq2 side, and added some (technically redundant) optional modifiers to some of the message fields.

@ChrisSon15
Copy link
Collaborator

ACK

@ChrisSon15 ChrisSon15 merged commit 4885480 into bisq-network:main Mar 9, 2026
3 checks passed
stejbac added a commit to stejbac/bisq2 that referenced this pull request Mar 9, 2026
Reorder the field numbers in 'rpc.proto' to try to keep them sequential
while still in development, even though that breaks wire compatibility.

(The corresponding changes are being made on Rust side in
PR bisq-network/bisq-musig#131.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants