You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because Protobuf serialization is not canonical 12, data encoded using Protobuf should not be used for hashing, signatures, hashmap keys, etc.
This is the reason why the NEAR team developed borsh and we might want to switch to that for our to_sign_bytes implementation in the test and example apps.
Alternatives to Protobuf for canonical serialization
Because Protobuf serialization is not canonical 1 2, data encoded using Protobuf should not be used for hashing, signatures, hashmap keys, etc.
This is the reason why the NEAR team developed
borsh
and we might want to switch to that for ourto_sign_bytes
implementation in the test and example apps.Alternatives to Protobuf for canonical serialization
borsh
bcs
Footnotes
https://github.com/protocolbuffers/protobuf/issues/3417 ↩
https://protobuf.dev/programming-guides/serialization-not-canonical/) ↩
The text was updated successfully, but these errors were encountered: