Skip to content

Commit

Permalink
FIx comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Kolezhniuk committed Aug 29, 2023
1 parent 8c4cca1 commit b4c2c43
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
7 changes: 7 additions & 0 deletions src/blake.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright
* This code is an adaptation of the code found in the "blake-hash" library (https://www.npmjs.com/package/blake-hash),
* rewritten from JavaScript to TypeScript.
*
*/

const zo = Uint8Array.from([0x01]);
const oo = Uint8Array.from([0x81]);

Expand Down
3 changes: 3 additions & 0 deletions src/ff/random.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/**
* Type definition for the browser crypto object.
*/
type BrowserCrypto = { crypto?: { getRandomValues?: (arg0: Uint8Array) => void } };

export function getRandomBytes(length: number): Uint8Array {
Expand Down
5 changes: 2 additions & 3 deletions src/ff/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
```
Copyright 2018 0kims association.
This files in this folder part of ffjavascript library rewritten by Typescript.
ffjavascript is part of the iden3 project copyright 2020 0KIMS association and published with GPL-3 license
Files in this folder is a part of ffjavascript library rewritten by Typescript.
Original implementation is written here https://github.com/iden3/ffjavascript.
```

0 comments on commit b4c2c43

Please sign in to comment.