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 Message Pack (compact variant) #395

Closed
wants to merge 1 commit into from

Conversation

leighmcculloch
Copy link
Member

What

Add decode XDR to Message Pack's compact form.

Why

I wrote this decode to Message Pack to experiment with encoding contract specs in Message Pack, 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-messagepack --features cli

To try out converting some XDR to Message Pack:

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

Related discussion is here:

@leighmcculloch leighmcculloch deleted the decode-to-messagepack 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