C# 클래스 Cryptid.CandidateOldVersionRecord

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

공개 프로퍼티들

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

공개 메소드들

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

메소드 상세

CandidateOldVersionRecord() 공개 메소드

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

프로퍼티 상세

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

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