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

Consider creating a way to encode and decode candid from Azle #262

Closed
lastmjs opened this issue May 11, 2022 · 2 comments
Closed

Consider creating a way to encode and decode candid from Azle #262

lastmjs opened this issue May 11, 2022 · 2 comments
Milestone

Comments

@lastmjs
Copy link
Member

lastmjs commented May 11, 2022

It might not be that hard to allow encoding and decoding candid in Azle. See here: https://github.com/dfinity/candid/tree/master/tools/didc

We could hopefully import the didc Rust library and expose an encode and decode function, allowing the developer to pass in a string and get back the hex string or the array of bytes, and the reverse process for decoding.

Would this be useful?

@lastmjs
Copy link
Member Author

lastmjs commented May 12, 2022

This is related: #263

We might be able to just use the dfinity js agent to encode and decode

@lastmjs lastmjs added this to the 1.0 milestone May 25, 2022
@lastmjs lastmjs added 5 day and removed 5 day labels May 25, 2022
@lastmjs
Copy link
Member Author

lastmjs commented Sep 8, 2022

Implemented, ic.candid_encode and ic.candid_decode

@lastmjs lastmjs closed this as completed Sep 8, 2022
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

1 participant