C# 클래스 FactomAPI.Chain

파일 보기 프로젝트 열기: CryptidID/FactomDotNet

공개 메소드들

메소드 설명
CommitChain ( ChainType c, string name ) : byte[]

First method to add a chain to factom. Spends the entry credits, must wait 10seconds and call RevealChain() to finalize the commit.

GetAllChainEntries ( DataStructs chainHead ) : List

Returns all the entries in a Chain. Type of entry has timestamp and entryhash value

GetAllChainEntries ( byte chainHeadID ) : List

Returns all the entries in a Chain. Type of entry has timestamp and entryhash value

GetChainHead ( byte hash ) : DataStructs.ChainHeadData

Takes in an entry chain hash and returns Key MR of the first entry. Can be used to get all the entries

NewChain ( DataStructs entry ) : ChainType

Creates a new Chain

RevealChain ( ChainType c ) : bool

Second step in committing a new chain. Only run this if CommitChain was successful.

메소드 상세

CommitChain() 공개 정적인 메소드

First method to add a chain to factom. Spends the entry credits, must wait 10seconds and call RevealChain() to finalize the commit.
public static CommitChain ( ChainType c, string name ) : byte[]
c ChainType Chain to be added
name string Name of Entry Credit wallet
리턴 byte[]

GetAllChainEntries() 공개 정적인 메소드

Returns all the entries in a Chain. Type of entry has timestamp and entryhash value
public static GetAllChainEntries ( DataStructs chainHead ) : List
chainHead DataStructs ChainHeadData type
리턴 List

GetAllChainEntries() 공개 정적인 메소드

Returns all the entries in a Chain. Type of entry has timestamp and entryhash value
public static GetAllChainEntries ( byte chainHeadID ) : List
chainHeadID byte ChainID of chain
리턴 List

GetChainHead() 공개 정적인 메소드

Takes in an entry chain hash and returns Key MR of the first entry. Can be used to get all the entries
public static GetChainHead ( byte hash ) : DataStructs.ChainHeadData
hash byte ChainID of chain
리턴 DataStructs.ChainHeadData

NewChain() 공개 정적인 메소드

Creates a new Chain
public static NewChain ( DataStructs entry ) : ChainType
entry DataStructs First entry in chain
리턴 ChainType

RevealChain() 공개 정적인 메소드

Second step in committing a new chain. Only run this if CommitChain was successful.
public static RevealChain ( ChainType c ) : bool
c ChainType Chain to be added
리턴 bool