C# Class Ipfs.MultiHash.HashingAlgorithm

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

Public Methods

Method 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

Method Description
HashingAlgorithm ( ) : System

Use Register to create a new instance of a HashingAlgorithm.

Method Details

Register() public static method

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 . ///
return HashingAlgorithm

ToString() public method

The Name of the hashing algorithm.
public ToString ( ) : string
return string