C# Class Ipfs.Api.MerkleNode

The IPFS MerkleDag is the datastructure at the heart of IPFS. It is an acyclic directed graph whose edges are hashes.
Initially an MerkleNode is just constructed with its MultiHash. Its other properties are lazily loaded.
Datei anzeigen Open project: richardschneider/net-ipfs-api Class Usage Examples

Public Methods

Method Description
Equals ( MerkleNode that ) : bool
Equals ( object obj ) : bool
GetHashCode ( ) : int
GetRawData ( ) : Stream

Gets the raw encoded data of the node.

Equivalent to ipfs block get Hash.

MerkleNode ( string hash, string name = null ) : System

Creates a new instance of the MerkleNode with the specified Hash">multihash and optional

ToString ( ) : string
operator ( ) : bool

Private Methods

Method Description
GetBlockStats ( ) : void

Get block statistics about the node, ipfs block stat key

The object stats include the block stats.

GetObjectStats ( ) : void

Get object statistics about the node, ipfs object stat hash

The object stats include the block stats.

Method Details

Equals() public method

public Equals ( MerkleNode that ) : bool
that MerkleNode
return bool

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

GetHashCode() public method

public GetHashCode ( ) : int
return int

GetRawData() public method

Gets the raw encoded data of the node.
Equivalent to ipfs block get Hash.
public GetRawData ( ) : Stream
return Stream

MerkleNode() public method

Creates a new instance of the MerkleNode with the specified Hash">multihash and optional
public MerkleNode ( string hash, string name = null ) : System
hash string /// The Base58 hash of the node or "/ipfs/hash". ///
name string
return System

ToString() public method

public ToString ( ) : string
return string

operator() public static method

public static operator ( ) : bool
return bool