C# 클래스 Paymetheus.Bitcoin.Wallet.Checksum

파일 보기 프로젝트 열기: btcsuite/Paymetheus

공개 메소드들

메소드 설명
Verify ( byte value ) : bool

Verifies the value ends with 4 bytes of a matching checksum.

WriteSum ( byte buffer ) : void

Computes the checksum for all but the last 4 bytes of the buffer and writes the sum to the final 4 bytes.

비공개 메소드들

메소드 설명
Hash ( byte value ) : byte[]

메소드 상세

Verify() 공개 정적인 메소드

Verifies the value ends with 4 bytes of a matching checksum.
public static Verify ( byte value ) : bool
value byte Byte array containing value to check, followed by 4 bytes of checksum
리턴 bool

WriteSum() 공개 정적인 메소드

Computes the checksum for all but the last 4 bytes of the buffer and writes the sum to the final 4 bytes.
public static WriteSum ( byte buffer ) : void
buffer byte Buffer containing value to sum, followed by 4 bytes to place checksum
리턴 void