From 20a21671f9464ba67d9e93a78ed496328f0f30e7 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Sun, 11 Sep 2022 22:48:40 -0400 Subject: [PATCH] undo plagiarism --- packages/zilliqa-js-crypto/src/schnorr.ts | 45 +++++++++++++++-------- 1 file changed, 29 insertions(+), 16 deletions(-) diff --git a/packages/zilliqa-js-crypto/src/schnorr.ts b/packages/zilliqa-js-crypto/src/schnorr.ts index 61a1c7669..670976623 100644 --- a/packages/zilliqa-js-crypto/src/schnorr.ts +++ b/packages/zilliqa-js-crypto/src/schnorr.ts @@ -1,19 +1,32 @@ -// Copyright (C) 2018 Zilliqa -// -// This file is part of zilliqa-js -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see . +/*! + * schnorr.js - schnorr signatures for bcoin + * Copyright (c) 2017, Christopher Jeffrey (MIT License). + * https://github.com/bcoin-org/bcoin + */ + +/** + * This software is licensed under the MIT License. + * + * Copyright (c) 2017, Christopher Jeffrey (https://github.com/chjj) + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ import { ec } from 'elliptic'; import hashjs from 'hash.js';