C# Class Cryptid.CandidateUpdatedRecord

Updated Record for use when updating candidates to new chains.
Inheritance: IRecord
Mostrar archivo Open project: CryptidID/Cryptid Class Usage Examples

Public Properties

Property Type Description
UpdatedRecordPrefix byte[]

Public Methods

Method Description
CandidateUpdatedRecord ( byte previousChain, byte currentChain ) : System.Linq

Create a new CandidateUpdatedRecord

Pack ( RSAParameters privKey ) : byte[]

Pack the record to storable data

Unpack ( byte packed, RSAParameters pubKey ) : CandidateUpdatedRecord

Unpack storable data to a CandidateUpdatedRecord

Method Details

CandidateUpdatedRecord() public method

Create a new CandidateUpdatedRecord
public CandidateUpdatedRecord ( byte previousChain, byte currentChain ) : System.Linq
previousChain byte The chain id of the old version chain
currentChain byte The chain id of the current chain
return System.Linq

Pack() public method

Pack the record to storable data
public Pack ( RSAParameters privKey ) : byte[]
privKey System.Security.Cryptography.RSAParameters The private key to sign the data with
return byte[]

Unpack() public static method

Unpack storable data to a CandidateUpdatedRecord
public static Unpack ( byte packed, RSAParameters pubKey ) : CandidateUpdatedRecord
packed byte The packed OldVersionRecord data
pubKey System.Security.Cryptography.RSAParameters The public key to verify with
return CandidateUpdatedRecord

Property Details

UpdatedRecordPrefix public_oe static_oe property

The record identier for this record
public static byte[] UpdatedRecordPrefix
return byte[]