Layer 224
FileHashObj
SHA 256 Hash of an uploaded file, to be checked for validity after download
constructor
fileHash#f39b035c offset:long limit:int hash:bytes = FileHash;
Parameters
| Name | Type | Description |
|---|---|---|
| Offset | long | Offset from where to start computing SHA-256 hash |
| Limit | int | Length |
| Hash | bytes | SHA-256 Hash of file chunk, to be checked for validity after download |
Returns
FileHashGogram Example
// Creating FileHashObj constructor obj := &tg.FileHashObj{ Offset: int64(1234567890), Limit: 42, Hash: []byte{0x01, 0x02, 0x03}, }