readme: add example for chash
This commit is contained in:
parent
7befd5f881
commit
6bcab6c24b
@ -315,6 +315,10 @@ type CHash = {
|
||||
outputLen: number;
|
||||
create(): any;
|
||||
};
|
||||
|
||||
// example
|
||||
function sha256(message: Uint8Array) { return _internal_lowlvl(message) }
|
||||
sha256.outputLen = 32; // 32 bytes of output for sha2-256
|
||||
```
|
||||
|
||||
**Message hash** is expected instead of message itself:
|
||||
|
Loading…
Reference in New Issue
Block a user