near / borsh-construct-py

Python implementation of Binary Object Representation Serializer for Hashing
https://borsh.io/
MIT License
26 stars 8 forks source link

How to specify decoding 32 raw bytes, for e.g. solana pubkey purposes? #18

Open ff781 opened 3 months ago

kevinheavey commented 3 months ago

I would use U8[32]. See the "Fixed size arrays" section here: https://near.github.io/borsh-construct-py/types/