-
Notifications
You must be signed in to change notification settings - Fork 56
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
Support 'hex-string' de-serialization method on getBytes operators #2391
Comments
I'd absolutely love to have this. I've always envisioned it as:
#[derive(Deserialize, Debug, Default, Serialize)]
enum RadonBytesEncoding {
#[default]
Hex = 0,
Base64 = 1,
} |
As a natural approach to web3 interactions, these other operators would also be great to have:
#[derive(Deserialize, Debug, Default, Serialize)]
enum RadonBytesEncoding {
#[default]
Hex = 0,
Base64 = 1,
Decimal = 2,
} |
Sure, that's a great addition! I agree on the point of assuming Big-Endian. Otherwise we'd need to have separate entries in We'd better simply have a |
ArrayGetBytes and MapGetBytes would be unneccesary for two reasons:
|
RadonMap.getBytes(key: string, method?: string)
RadonArray.getBytes(index: number, method?: string)
RadonString.asBytes(method?: string)
The text was updated successfully, but these errors were encountered: