C# 클래스 Ipfs.MultiHash.HashingAlgorithm

Metadata and implementation of an IPFS hashing algorithm.
파일 보기 프로젝트 열기: richardschneider/net-ipfs-core 1 사용 예제들

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
HashingAlgorithm ( ) : System

Use Register to create a new instance of a HashingAlgorithm.

메소드 상세

Register() 공개 정적인 메소드

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 . ///
리턴 HashingAlgorithm

ToString() 공개 메소드

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