I'm working on an ink! smart contract that will store the IPFS hash for each AccountId
. I see that in EVM it's efficient to convert the hash to bytes32. What about in ink!, is Vec<u8>
efficient enough?
#[ink(storage)]
pub struct MyContract {
cids: Mapping<AccountId, Vec<u8>>,
}
Hash
instead ofVec<u8>