Files
common/flow-typed/js-sha3.js
T
Jaco Greeff 03dc89c2b6 Remove exposed Buffer in crypto (#80)
* Use js-sha3 instead of keccak

* Remove exposed toBuffer from util-crypto

* Add definiton for js-sha3

* Remove Buffer from docs

* Cleanup crypto hashing

* Cleanup interface
2018-02-08 16:12:00 +01:00

13 lines
301 B
JavaScript

// @flow
// TODO: This is not comprehensive, rather only what is (currently) used
declare module 'js-sha3' {
declare type JSSha3$Interface = {
arrayBuffer: (data: ArrayBuffer | Buffer | Uint8Array | string) => ArrayBuffer
};
declare module.exports: {
keccak256: JSSha3$Interface
}
}