Skip to content

Support decoding a stream of separately base64 encoded entities #469

@leighmcculloch

Description

@leighmcculloch

The stellar-xdr CLI can decode single base64 entities both when that base64 encoding contains a single xdr entity with --input single-base64 and when it contains multiple xdr entities with --input stream-base64.

However the stellar-xdr CLI cannot decode multiple base64 entities that appear in a stream one after the other.

It would be helpful to be able to do that so it would be possible to pipe multiple separately encoded base64 entities to the cli and for the cli to decode those and produce a JSON object stream for each.

For example, if a base64 entity of an xdr value has been saved to a file such as msg.xdr.base64, it should be possible to send it to the stellar-cli with:

cat msg.xdr.base64 msg.xdr.base64 | stellar-xdr decode --type MyType --input <a new type>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions