-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[Core] rename hasher #3651
[Core] rename hasher #3651
Changes from 3 commits
14179dd
621b589
3b08fac
427b96b
dbaa0d3
84b1029
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Copyright (C) 2015-2024 The Neo Project. | ||
// | ||
// HashAlgorithm.cs file belongs to the neo project and is free | ||
// software distributed under the MIT software license, see the | ||
// accompanying file LICENSE in the main directory of the | ||
// repository or http://www.opensource.org/licenses/mit-license.php | ||
// for more details. | ||
// | ||
// Redistribution and use in source and binary forms with or without | ||
// modifications are permitted. | ||
|
||
namespace Neo.Cryptography | ||
{ | ||
public enum HashAlgorithm : byte | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe add an |
||
{ | ||
/// <summary> | ||
/// The SHA256 hash algorithm. | ||
/// </summary> | ||
SHA256 = 0x00, | ||
|
||
/// <summary> | ||
/// The Keccak256 hash algorithm. | ||
/// </summary> | ||
Keccak256 = 0x01, | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,11 +9,14 @@ | |
// Redistribution and use in source and binary forms with or without | ||
// modifications are permitted. | ||
|
||
using System; | ||
|
||
namespace Neo.Cryptography | ||
{ | ||
/// <summary> | ||
/// Represents hash function identifiers supported by ECDSA message signature and verification. | ||
/// </summary> | ||
[Obsolete("Use HashAlgorithm instead")] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I prefer rename the enum instead of duplicate all the methods There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You have to, those methods are public, previously our principle is duplicate a new one and obsolete old one before remove it, at least previouly we deal with public methods that way. |
||
public enum Hasher : byte | ||
{ | ||
/// <summary> | ||
|
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.
Only change the argument name for obsolete?