C# Class Cryptid.CandidateUpdatedRecord

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

Méthodes publiques

Свойство Type Description
UpdatedRecordPrefix byte[]

Méthodes publiques

Méthode 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 méthode

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
Résultat System.Linq

Pack() public méthode

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

Unpack() public static méthode

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
Résultat CandidateUpdatedRecord

Property Details

UpdatedRecordPrefix public_oe static_oe property

The record identier for this record
public static byte[] UpdatedRecordPrefix
Résultat byte[]