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

APIs which do less JSON/Base64 wrapping #1

Open
1 task
richvdh opened this issue Mar 13, 2017 · 2 comments
Open
1 task

APIs which do less JSON/Base64 wrapping #1

richvdh opened this issue Mar 13, 2017 · 2 comments

Comments

@richvdh
Copy link
Member

richvdh commented Mar 13, 2017

The current APIs tend to take and return JSON objects with Base-64 encoding. In some applications this is a hindrance rather than a help; we should expose lower-level APIs which allow passing of raw strings.

Examples:

  • olm_account_identity_keys generates a chunk of JSON - but apps end up having to parse the json to fish out the individual keys.
@Ralith
Copy link

Ralith commented Apr 7, 2017

Ideally, I'd like to see support for raw, completely unencoded data (i.e. not base64 strings, or any other text format) for all input and output, allowing encoding/decoding to eventually be factored out into external code, and skipped entirely when unneeded such as when persisting data locally. This could also improve reusability and ultimately reduce the amount of code to be maintained and audited within the olm library itself.

@spacekitteh
Copy link

Related is #5

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

No branches or pull requests

3 participants