C# Class TSystems.RELOAD.Storage.StoredData

The basic unit of stored data is a single StoredData structure. RELOAD base -12 p.80 --mine
Datei anzeigen Open project: RELOAD-NET/RELOAD.NET Class Usage Examples

Public Methods

Method Description
SignData ( ResourceId resId, UInt32 kindId, SignerIdentity id, ReloadConfig rc ) : void

Computes the signature of the stored data. The input to the signature algorithm is: resource_id || kind || storage_time || StoredDataValue || SignerIdentity Where || indicates concatenation.

StoredData ( StoredDataValue value ) : System

This contructor should be used by the store_data originator. Storeage -and lifetime will be set automaticly.

StoredData ( System.UInt64 storage_time, UInt32 lifetime, StoredDataValue value ) : System

This constructor should be used whiel message deserialization.

Method Details

SignData() public method

Computes the signature of the stored data. The input to the signature algorithm is: resource_id || kind || storage_time || StoredDataValue || SignerIdentity Where || indicates concatenation.
public SignData ( ResourceId resId, UInt32 kindId, SignerIdentity id, ReloadConfig rc ) : void
resId TSystems.RELOAD.Utils.ResourceId
kindId System.UInt32
id TSystems.RELOAD.Topology.SignerIdentity
rc ReloadConfig
return void

StoredData() public method

This contructor should be used by the store_data originator. Storeage -and lifetime will be set automaticly.
public StoredData ( StoredDataValue value ) : System
value StoredDataValue The value to be stored
return System

StoredData() public method

This constructor should be used whiel message deserialization.
public StoredData ( System.UInt64 storage_time, UInt32 lifetime, StoredDataValue value ) : System
storage_time System.UInt64
lifetime System.UInt32
value StoredDataValue
return System