Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add decode to CBOR #394

Closed
wants to merge 1 commit into from
Closed

Add decode to CBOR #394

wants to merge 1 commit into from

Conversation

leighmcculloch
Copy link
Member

@leighmcculloch leighmcculloch commented Sep 13, 2024

What

Add decode XDR to CBOR.

Why

I wrote this decode to CBOR to experiment with encoding contract specs in CBOR, that are currently encoded as XDR.

To install the CLI in this PR, run:

cargo install --locked --git https://github.com/stellar/rs-stellar-xdr --branch decode-to-cbor --features cli

To try out converting some XDR to CBOR:

cat spec.xdr | stellar-xdr decode --type ScSpecEntry --input stream --output cbor

Related discussion is here:

@leighmcculloch leighmcculloch deleted the decode-to-cbor branch September 20, 2024 03:00
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.

1 participant