diff --git a/COPYING b/COPYING new file mode 100644 index 00000000..5f866bad --- /dev/null +++ b/COPYING @@ -0,0 +1,38 @@ +Copyright (c) 2020 The Zcash developers + +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. + + +The MIT software license (https://www.opensource.org/licenses/mit-license.php) +above applies to the code directly included in this source distribution, with +the exception of certain Autoconf macros. Dependencies downloaded as part of +the build process may be covered by other open-source licenses. The MIT-licensed +source code is not considered a derived work of these Autoconf macros or of the +dependencies. For further details see 'contrib/debian/copyright'. + + +This product includes software developed by the OpenSSL Project for use in the +OpenSSL Toolkit (https://www.openssl.org/). This product includes cryptographic +software written by Eric Young (eay@cryptsoft.com). + + +Although almost all of the Zcash code is licensed under "permissive" open source +licenses, users and distributors should note that when built using the default +build options, Zcash depends on Oracle Berkeley DB 6.2.x, which is licensed +under the GNU Affero General Public License. diff --git a/Makefile b/Makefile index 0e111ba8..3f01c793 100644 --- a/Makefile +++ b/Makefile @@ -5,6 +5,10 @@ # Description: Used for local and container dev in CI deployments # Usage: make # + # Copyright (c) 2020 The Zcash developers + # Distributed under the MIT software license, see the accompanying + # file COPYING or https://www.opensource.org/licenses/mit-license.php . + # # Known bugs/missing features: # 1. make msan is not stable as of 9/20/2019 # diff --git a/cmd/server/main.go b/cmd/server/main.go index 223c0184..9c780de4 100644 --- a/cmd/server/main.go +++ b/cmd/server/main.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-2020 The Zcash developers +// Distributed under the MIT software license, see the accompanying +// file COPYING or https://www.opensource.org/licenses/mit-license.php . package main import ( diff --git a/cmd/server/server_test.go b/cmd/server/server_test.go index 9213007a..1bc467e8 100644 --- a/cmd/server/server_test.go +++ b/cmd/server/server_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-2020 The Zcash developers +// Distributed under the MIT software license, see the accompanying +// file COPYING or https://www.opensource.org/licenses/mit-license.php . package main import ( diff --git a/common/cache.go b/common/cache.go index f317735d..deaff1dd 100644 --- a/common/cache.go +++ b/common/cache.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-2020 The Zcash developers +// Distributed under the MIT software license, see the accompanying +// file COPYING or https://www.opensource.org/licenses/mit-license.php . package common import ( diff --git a/common/cache_test.go b/common/cache_test.go index 6306f4c3..a70190b8 100644 --- a/common/cache_test.go +++ b/common/cache_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-2020 The Zcash developers +// Distributed under the MIT software license, see the accompanying +// file COPYING or https://www.opensource.org/licenses/mit-license.php . package common import ( diff --git a/common/common.go b/common/common.go index 9c32f7e3..78b9630f 100644 --- a/common/common.go +++ b/common/common.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-2020 The Zcash developers +// Distributed under the MIT software license, see the accompanying +// file COPYING or https://www.opensource.org/licenses/mit-license.php . package common import ( diff --git a/common/common_test.go b/common/common_test.go index d71c3e1e..8028879d 100644 --- a/common/common_test.go +++ b/common/common_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-2020 The Zcash developers +// Distributed under the MIT software license, see the accompanying +// file COPYING or https://www.opensource.org/licenses/mit-license.php . package common import ( diff --git a/common/generatecerts.go b/common/generatecerts.go index 73cea08d..0dddbc99 100644 --- a/common/generatecerts.go +++ b/common/generatecerts.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-2020 The Zcash developers +// Distributed under the MIT software license, see the accompanying +// file COPYING or https://www.opensource.org/licenses/mit-license.php . package common import ( diff --git a/frontend/frontend_test.go b/frontend/frontend_test.go index bad0c307..78616801 100644 --- a/frontend/frontend_test.go +++ b/frontend/frontend_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-2020 The Zcash developers +// Distributed under the MIT software license, see the accompanying +// file COPYING or https://www.opensource.org/licenses/mit-license.php . package frontend import ( diff --git a/frontend/rpc_client.go b/frontend/rpc_client.go index a519cb93..f675af8e 100644 --- a/frontend/rpc_client.go +++ b/frontend/rpc_client.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-2020 The Zcash developers +// Distributed under the MIT software license, see the accompanying +// file COPYING or https://www.opensource.org/licenses/mit-license.php . package frontend import ( diff --git a/frontend/service.go b/frontend/service.go index ba69cb3b..37717ee0 100644 --- a/frontend/service.go +++ b/frontend/service.go @@ -1,3 +1,8 @@ +// Copyright (c) 2019-2020 The Zcash developers +// Distributed under the MIT software license, see the accompanying +// file COPYING or https://www.opensource.org/licenses/mit-license.php . + +// Package frontend implements the gRPC handlers called by the wallets. package frontend import ( diff --git a/parser/block.go b/parser/block.go index 888fed0b..c9a5d107 100644 --- a/parser/block.go +++ b/parser/block.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-2020 The Zcash developers +// Distributed under the MIT software license, see the accompanying +// file COPYING or https://www.opensource.org/licenses/mit-license.php . package parser import ( diff --git a/parser/block_header.go b/parser/block_header.go index 82ff1522..8c42c372 100644 --- a/parser/block_header.go +++ b/parser/block_header.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-2020 The Zcash developers +// Distributed under the MIT software license, see the accompanying +// file COPYING or https://www.opensource.org/licenses/mit-license.php . package parser import ( diff --git a/parser/block_header_test.go b/parser/block_header_test.go index d3832dc8..94866a71 100644 --- a/parser/block_header_test.go +++ b/parser/block_header_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-2020 The Zcash developers +// Distributed under the MIT software license, see the accompanying +// file COPYING or https://www.opensource.org/licenses/mit-license.php . package parser import ( diff --git a/parser/block_test.go b/parser/block_test.go index 30fe40dd..cda80db1 100644 --- a/parser/block_test.go +++ b/parser/block_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-2020 The Zcash developers +// Distributed under the MIT software license, see the accompanying +// file COPYING or https://www.opensource.org/licenses/mit-license.php . package parser import ( diff --git a/parser/fuzz.go b/parser/fuzz.go index b0e9baa3..c6821253 100644 --- a/parser/fuzz.go +++ b/parser/fuzz.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-2020 The Zcash developers +// Distributed under the MIT software license, see the accompanying +// file COPYING or https://www.opensource.org/licenses/mit-license.php . // +build gofuzz package parser diff --git a/parser/internal/bytestring/bytestring.go b/parser/internal/bytestring/bytestring.go index 6a016f22..98f75c1a 100644 --- a/parser/internal/bytestring/bytestring.go +++ b/parser/internal/bytestring/bytestring.go @@ -1,3 +1,7 @@ +// Copyright (c) 2019-2020 The Zcash developers +// Distributed under the MIT software license, see the accompanying +// file COPYING or https://www.opensource.org/licenses/mit-license.php . + // Package bytestring provides a cryptobyte-inspired API specialized to the // needs of parsing Zcash transactions. package bytestring diff --git a/parser/internal/bytestring/bytestring_test.go b/parser/internal/bytestring/bytestring_test.go index 7d64afa2..d6b9ab9e 100644 --- a/parser/internal/bytestring/bytestring_test.go +++ b/parser/internal/bytestring/bytestring_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-2020 The Zcash developers +// Distributed under the MIT software license, see the accompanying +// file COPYING or https://www.opensource.org/licenses/mit-license.php . package bytestring import ( diff --git a/parser/transaction.go b/parser/transaction.go index 0a9eb26f..e909d100 100644 --- a/parser/transaction.go +++ b/parser/transaction.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-2020 The Zcash developers +// Distributed under the MIT software license, see the accompanying +// file COPYING or https://www.opensource.org/licenses/mit-license.php . package parser import ( diff --git a/parser/transaction_test.go b/parser/transaction_test.go index 202590f0..2ad2dfbe 100644 --- a/parser/transaction_test.go +++ b/parser/transaction_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-2020 The Zcash developers +// Distributed under the MIT software license, see the accompanying +// file COPYING or https://www.opensource.org/licenses/mit-license.php . package parser import ( diff --git a/walletrpc/compact_formats.proto b/walletrpc/compact_formats.proto index ff920db3..69a404ca 100644 --- a/walletrpc/compact_formats.proto +++ b/walletrpc/compact_formats.proto @@ -1,3 +1,7 @@ +// Copyright (c) 2019-2020 The Zcash developers +// Distributed under the MIT software license, see the accompanying +// file COPYING or https://www.opensource.org/licenses/mit-license.php . + syntax = "proto3"; package cash.z.wallet.sdk.rpc; option go_package = "walletrpc"; diff --git a/walletrpc/generate.go b/walletrpc/generate.go index 836010f8..e75f7feb 100644 --- a/walletrpc/generate.go +++ b/walletrpc/generate.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-2020 The Zcash developers +// Distributed under the MIT software license, see the accompanying +// file COPYING or https://www.opensource.org/licenses/mit-license.php . package walletrpc //go:generate protoc -I . ./compact_formats.proto --go_out=plugins=grpc:. diff --git a/walletrpc/service.proto b/walletrpc/service.proto index c87fa55d..7f3d4451 100644 --- a/walletrpc/service.proto +++ b/walletrpc/service.proto @@ -1,3 +1,7 @@ +// Copyright (c) 2019-2020 The Zcash developers +// Distributed under the MIT software license, see the accompanying +// file COPYING or https://www.opensource.org/licenses/mit-license.php . + syntax = "proto3"; package cash.z.wallet.sdk.rpc; option go_package = "walletrpc"; diff --git a/walletrpc/walletrpc_test.go b/walletrpc/walletrpc_test.go index ebec876b..d44b2231 100644 --- a/walletrpc/walletrpc_test.go +++ b/walletrpc/walletrpc_test.go @@ -1,3 +1,6 @@ +// Copyright (c) 2019-2020 The Zcash developers +// Distributed under the MIT software license, see the accompanying +// file COPYING or https://www.opensource.org/licenses/mit-license.php . package walletrpc import (