code cleanup

This commit is contained in:
Adhiraj Singh
2021-10-11 09:36:17 +05:30
parent c75364ada8
commit d3b7ffecf2
10 changed files with 26 additions and 22 deletions

View File

@@ -14,7 +14,7 @@ const generateIV = (counter: number) => {
return new Uint8Array(iv)
}
export default ({ public: publicKey, private: privateKey }: KeyPair) => {
export const makeNoiseHandler = ({ public: publicKey, private: privateKey }: KeyPair) => {
const authenticate = (data: Uint8Array) => {
if(!isFinished) {