C# Класс Paymetheus.Bitcoin.Wallet.Checksum

Показать файл Открыть проект

Открытые методы

Метод Описание
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