Show / Hide Table of Contents

Interface IMerkleNode<Link>

A Directed Acyclic Graph (DAG) in IPFS.

Inherited Members
IDataBlock.DataBytes
IDataBlock.DataStream
IDataBlock.Id
IDataBlock.Size
Namespace: Ipfs
Assembly: Ipfs.Core.dll
Syntax
public interface IMerkleNode<out Link> : IDataBlock where Link : IMerkleLink
Type Parameters
Name Description
Link

The type of IMerkleLink used by this node.

Remarks

A MerkleNode has a sequence of navigable Links and some data (DataBytes or DataStream).

Properties

| Improve this Doc View Source

Links

Links to other nodes.

Declaration
IEnumerable<Link> Links { get; }
Property Value
Type Description
IEnumerable<Link>

A sequence of Link.

Remarks

It is never null.

The links are sorted ascending by Name. A null name is compared as "".

Methods

| Improve this Doc View Source

ToLink(String)

Returns a link to the node.

Declaration
Link ToLink(string name = "")
Parameters
Type Name Description
String name

A Name for the link; defaults to "".

Returns
Type Description
Link

A new IMerkleLink to the node.

See Also

https://en.wikipedia.org/wiki/Directed_acyclic_graph
https://github.com/ipfs/specs/tree/master/merkledag
  • Improve this Doc
  • View Source
Back to top Generated by DocFX