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 define U256 type? #14

Open WuTao18 opened 1 year ago

WuTao18 commented 1 year ago

In Rust, U256 can be defined as follows:

construct_uint! {
    #[derive(BorshDeserialize, BorshSerialize, Serialize, Deserialize)]
    pub struct U256(4);
}

How to define U256 in borsh-construct?