C# 클래스 Cryptid.CandidateUpdatedRecord

Updated Record for use when updating candidates to new chains.
상속: IRecord
파일 보기 프로젝트 열기: CryptidID/Cryptid 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
UpdatedRecordPrefix byte[]

공개 메소드들

메소드 설명
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

메소드 상세

CandidateUpdatedRecord() 공개 메소드

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
리턴 System.Linq

Pack() 공개 메소드

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

Unpack() 공개 정적인 메소드

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
리턴 CandidateUpdatedRecord

프로퍼티 상세

UpdatedRecordPrefix 공개적으로 정적으로 프로퍼티

The record identier for this record
public static byte[] UpdatedRecordPrefix
리턴 byte[]