C# Class Ipfs.MultiHash.HashingAlgorithm

Metadata and implementation of an IPFS hashing algorithm.
Afficher le fichier Open project: richardschneider/net-ipfs-core Class Usage Examples

Méthodes publiques

Méthode Description
Register ( string name, byte code, byte digestSize, Func hasher = null ) : HashingAlgorithm

Register a new IPFS hashing algorithm.

ToString ( ) : string

The Name of the hashing algorithm.

Private Methods

Méthode Description
HashingAlgorithm ( ) : System

Use Register to create a new instance of a HashingAlgorithm.

Method Details

Register() public static méthode

Register a new IPFS hashing algorithm.
public static Register ( string name, byte code, byte digestSize, Func hasher = null ) : HashingAlgorithm
name string /// The name of the algorithm. ///
code byte /// The IPFS number assigned to the hashing algorithm. ///
digestSize byte /// The size, in bytes, of the digest value. ///
hasher Func /// A Func that a . If not specified, then a Func is created to /// return a . ///
Résultat HashingAlgorithm

ToString() public méthode

The Name of the hashing algorithm.
public ToString ( ) : string
Résultat string