C# Class Cryptid.CandidateOldVersionRecord

Old Version Record for use when updating candidates to new chains.
Inheritance: IRecord
显示文件 Open project: CryptidID/Cryptid Class Usage Examples

Public Properties

Property Type Description
CandidateOldVersionPrefix byte[]

Public Methods

Method Description
CandidateOldVersionRecord ( byte currentChain, byte nextChain ) : System.Linq

Create a new CandidateOldVersionRecord

Pack ( RSAParameters privKey ) : byte[]

Pack the record to storable data

Unpack ( byte packed, RSAParameters pubKey ) : CandidateOldVersionRecord

Unpack storable data to a CandidateOldVersionRecord

Method Details

CandidateOldVersionRecord() public method

Create a new CandidateOldVersionRecord
public CandidateOldVersionRecord ( byte currentChain, byte nextChain ) : System.Linq
currentChain byte The chain id of the current chain
nextChain byte The chain id of the next 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 CandidateOldVersionRecord
public static Unpack ( byte packed, RSAParameters pubKey ) : CandidateOldVersionRecord
packed byte The packed OldVersionRecord data
pubKey System.Security.Cryptography.RSAParameters The public key to verify with
return CandidateOldVersionRecord

Property Details

CandidateOldVersionPrefix public_oe static_oe property

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