Browse Source

Update some copyrights

pull/141/head
Duke Leto 4 years ago
parent
commit
cb09e7feda
  1. 3
      src/bech32.cpp
  2. 5
      src/bech32.h
  3. 3
      src/dbwrapper.cpp
  4. 1
      src/hash.cpp
  5. 1
      src/metrics.h
  6. 1
      src/protocol.cpp
  7. 9
      src/pubkey.cpp
  8. 3
      src/sync.cpp

3
src/bech32.cpp

@ -1,6 +1,7 @@
// Copyright (c) 2017 Pieter Wuille
// Copyright (c) 2019-2020 The Hush developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
// file COPYING or https://www.opensource.org/licenses/mit-license.php
#include "bech32.h"

5
src/bech32.h

@ -1,8 +1,9 @@
// Copyright (c) 2017 Pieter Wuille
// Copyright (c) 2019-2020 The Hush developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
// file COPYING or https://www.opensource.org/licenses/mit-license.php
// Bech32 is a string encoding format used in newer address types.
// Bech32 is a string encoding format used in Sapling zaddrs
// The output consists of a human-readable part (alphanumeric), a
// separator character (1), and a base32 data section, the last
// 6 characters of which are a checksum.

3
src/dbwrapper.cpp

@ -1,6 +1,7 @@
// Copyright (c) 2012-2014 The Bitcoin Core developers
// Copyright (c) 2019-2020 The Hush developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
// file COPYING or https://www.opensource.org/licenses/mit-license.php
#include "dbwrapper.h"

1
src/hash.cpp

@ -1,4 +1,5 @@
// Copyright (c) 2013-2014 The Bitcoin Core developers
// Copyright (c) 2019-2020 The Hush developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

1
src/metrics.h

@ -1,4 +1,5 @@
// Copyright (c) 2016 The Zcash developers
// Copyright (c) 2019-2020 The Hush developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

1
src/protocol.cpp

@ -1,5 +1,6 @@
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin Core developers
// Copyright (c) 2019-2020 The Hush developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

9
src/pubkey.cpp

@ -1,7 +1,8 @@
// Copyright (c) 2009-2014 The Bitcoin Core developers
// Copyright (c) 2017 The Zcash developers
// Copyright (c) 2019-2020 The Hush developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
// file COPYING or https://www.opensource.org/licenses/mit-license.php
/******************************************************************************
* Copyright © 2014-2019 The SuperNET Developers. *
@ -41,12 +42,12 @@ bool CPubKey::Verify(const uint256 &hash, const std::vector<unsigned char>& vchS
if (vchSig.size() == 0) {
return false;
}
/* Zcash, unlike Bitcoin, has always enforced strict DER signatures. */
/* Hush, unlike Bitcoin, has always enforced strict DER signatures. */
if (!secp256k1_ecdsa_signature_parse_der(secp256k1_context_verify, &sig, &vchSig[0], vchSig.size())) {
return false;
}
/* libsecp256k1's ECDSA verification requires lower-S signatures, which have
* not historically been enforced in Bitcoin or Zcash, so normalize them first. */
* not historically been enforced in Bitcoin or Hush, so normalize them first. */
secp256k1_ecdsa_signature_normalize(secp256k1_context_verify, &sig, &sig);
return secp256k1_ecdsa_verify(secp256k1_context_verify, &sig, hash.begin(), &pubkey);
}
@ -142,7 +143,7 @@ bool CExtPubKey::Derive(CExtPubKey &out, unsigned int nChild) const {
/* static */ bool CPubKey::CheckLowS(const std::vector<unsigned char>& vchSig) {
secp256k1_ecdsa_signature sig;
/* Zcash, unlike Bitcoin, has always enforced strict DER signatures. */
/* Hush, unlike Bitcoin, has always enforced strict DER signatures. */
if (!secp256k1_ecdsa_signature_parse_der(secp256k1_context_verify, &sig, &vchSig[0], vchSig.size())) {
return false;
}

3
src/sync.cpp

@ -1,6 +1,7 @@
// Copyright (c) 2011-2012 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
// Copyright (c) 2019-2020 The Hush developers
// file COPYING or https://www.opensource.org/licenses/mit-license.php
/******************************************************************************
* Copyright © 2014-2019 The SuperNET Developers. *

Loading…
Cancel
Save