Layer 220
FileHash
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 FileHash constructor obj := &tg.FileHash{ Offset: int64(0), Limit: 0, Hash: []byte{}, }