-
Notifications
You must be signed in to change notification settings - Fork 276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[refactor] #1982: encapsulate access to iroha_crypto
structures
#2077
[refactor] #1982: encapsulate access to iroha_crypto
structures
#2077
Conversation
iroha_crypto
structures
94b69d9
to
979a458
Compare
|
||
impl Hash { | ||
/// Length of hash | ||
pub const LENGTH: usize = 32; | ||
|
||
/// Construct zeroed hash | ||
pub const fn zeroed() -> Self { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should either have this associated method return all 0 hash as it currently is, or remove it and use Option::None
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Option::None
is more idiomatic and doesn't take up more space, if we to mark the hash as non-zero
, to enable the niche optimisation.
2cff835
to
4905e4e
Compare
4905e4e
to
08389ee
Compare
e9ced83
to
fd45932
Compare
9f774d6
to
c638287
Compare
c638287
to
3563569
Compare
3563569
to
8b8c3c8
Compare
Signed-off-by: Marin Veršić <[email protected]>
8b8c3c8
to
59412d6
Compare
…o` structures (hyperledger-iroha#2077) Signed-off-by: Marin Veršić <[email protected]>
…o` structures (hyperledger-iroha#2077) Signed-off-by: Marin Veršić <[email protected]>
…o` structures (hyperledger-iroha#2077) Signed-off-by: Marin Veršić <[email protected]>
Signed-off-by: Marin Veršić [email protected]
Description of the Change
crypto
apitorii
related code fromcore
tocli
warp
dependency fromcore
MerkleTree
toiroha_crypto
Issue
Also closes #2101
Benefits
Possible Drawbacks
Usage Examples or Tests [optional]
Alternate Designs [optional]