C# Class FactomAPI.Entries

显示文件 Open project: CryptidID/FactomDotNet

Public Methods

Method Description
ChainIdOfFirstEntry ( DataStructs entry ) : byte[]

Passing the first entry of a Chain will get the chainId of that entry. Needs the ExtIDs to do this successfully

HashEntry ( DataStructs entry ) : byte[]

Gets a hash of an entry

MarshalBinary ( DataStructs e ) : byte[]

Marshals an entry into a byte[] to be sent to restAPI

Private Methods

Method Description
MarshalExtIDsBinary ( DataStructs e ) : byte[]

Helper function of MarshalBinary

MarshalExtIDsSize ( DataStructs e ) : byte[]

Helper function of MarshalBinary

Method Details

ChainIdOfFirstEntry() public static method

Passing the first entry of a Chain will get the chainId of that entry. Needs the ExtIDs to do this successfully
public static ChainIdOfFirstEntry ( DataStructs entry ) : byte[]
entry DataStructs Entry object
return byte[]

HashEntry() public static method

Gets a hash of an entry
public static HashEntry ( DataStructs entry ) : byte[]
entry DataStructs EntryData to be hashed
return byte[]

MarshalBinary() public static method

Marshals an entry into a byte[] to be sent to restAPI
public static MarshalBinary ( DataStructs e ) : byte[]
e DataStructs Entry to be marshaled
return byte[]