Metadata and implemetations of a IPFS hashing algorithms.
InheritanceHashingAlgorithm
Namespace: Ipfs.Registry Assembly: Ipfs.Core.dll Syntaxpublic class HashingAlgorithm
Properties | Improve this Doc View Source All
A sequence consisting of all HashingAlgorithm.
Declarationpublic static IEnumerable<HashingAlgorithm> All { get; }
Property Value | Improve this Doc View Source Code
The IPFS number assigned to the hashing algorithm.
Declaration Property Value | Improve this Doc View Source DigestSizeThe size, in bytes, of the digest value.
Declarationpublic int DigestSize { get; }
Property Value Type Description Int32
The digest value size in bytes. Zero indicates that the digest is non fixed.
| Improve this Doc View Source HasherReturns a cryptographic hash algorithm that can compute a hash (digest).
Declarationpublic Func<HashAlgorithm> Hasher { get; }
Property Value | Improve this Doc View Source Name
The name of the algorithm.
Declarationpublic string Name { get; }
Property Value Type Description String
A unique name.
Methods | Improve this Doc View Source Deregister(HashingAlgorithm)Remove an IPFS hashing algorithm from the registry.
Declarationpublic static void Deregister(HashingAlgorithm algorithm)
Parameters | Improve this Doc View Source GetAlgorithm(String)
Gets the HashAlgorithm with the specified IPFS multi-hash name.
Declarationpublic static HashAlgorithm GetAlgorithm(string name)
Parameters Returns Type Description HashAlgorithm
The hashing implementation associated with the name
.
Gets the metadata with the specified IPFS multi-hash name.
Declarationpublic static HashingAlgorithm GetAlgorithmMetadata(string name)
Parameters Returns Type Description HashingAlgorithm
The metadata associated with the hashing name
.
Register a new IPFS hashing algorithm.
Declarationpublic static HashingAlgorithm Register(string name, int code, int digestSize, Func<HashAlgorithm> hasher = null)
Parameters Returns | Improve this Doc View Source RegisterAlias(String, String)
Register an alias for an IPFS hashing algorithm.
Declarationpublic static HashingAlgorithm RegisterAlias(string alias, string name)
Parameters Type Name Description String alias
The alias name.
String nameThe name of the existing algorithm.
Returns | Improve this Doc View Source ToString()The Name of the hashing algorithm.
Declarationpublic override string ToString()
Returns Overrides
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4