在基板中,我有一个代码来获取散列:
let kitty = Kitty::<T> {
dna: String::from("test"),
price: None,
gender: String::from("male"),
owner: "there's an accountid here",
};
let kitty_id = T::Hashing::hash_of(&kitty);如果相同的kitty属性被传递到hash_of函数中,我可以得到相同的hash_of散列吗?
发布于 2022-01-02 22:05:13
不,这不返回随机散列。它返回输入数据的散列。
https://stackoverflow.com/questions/70534901
复制相似问题