borsh-construct-py
borsh-construct-py copied to clipboard
How to define U256 type?
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?