diff options
author | Determinant <[email protected]> | 2018-11-27 18:09:44 -0500 |
---|---|---|
committer | Determinant <[email protected]> | 2018-11-27 18:09:44 -0500 |
commit | cef09a1b9dd2197addd4f063fd6c81a2ba7d79e1 (patch) | |
tree | cd9b3c62b090ce3ca57c4316d88fdaa68fecdfed | |
parent | 59bac78c30b88b4a4db75b906c20f2bfe35ded41 (diff) |
add license info for each source file
-rw-r--r-- | CMakeLists.txt | 15 | ||||
-rw-r--r-- | include/hotstuff/client.h | 16 | ||||
-rw-r--r-- | include/hotstuff/consensus.h | 17 | ||||
-rw-r--r-- | include/hotstuff/crypto.h | 16 | ||||
-rw-r--r-- | include/hotstuff/entity.h | 16 | ||||
-rw-r--r-- | include/hotstuff/hotstuff.h | 17 | ||||
-rw-r--r-- | include/hotstuff/liveness.h | 17 | ||||
-rw-r--r-- | include/hotstuff/task.h | 16 | ||||
-rw-r--r-- | include/hotstuff/type.h | 16 | ||||
-rw-r--r-- | include/hotstuff/util.h | 16 | ||||
-rw-r--r-- | src/client.cpp | 16 | ||||
-rw-r--r-- | src/consensus.cpp | 17 | ||||
-rw-r--r-- | src/crypto.cpp | 16 | ||||
-rw-r--r-- | src/entity.cpp | 16 | ||||
-rw-r--r-- | src/hotstuff.cpp | 17 | ||||
-rw-r--r-- | src/hotstuff_app.cpp | 17 | ||||
-rw-r--r-- | src/hotstuff_client.cpp | 17 | ||||
-rw-r--r-- | src/hotstuff_keygen.cpp | 16 | ||||
-rw-r--r-- | src/util.cpp | 16 |
19 files changed, 310 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index a443e8f..a9df6ef 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,3 +1,18 @@ +# Copyright 2018 VMware +# Copyright 2018 Ted Yin +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + cmake_minimum_required(VERSION 3.9) project(hotstuff) set(CMAKE_CXX_STANDARD 17) diff --git a/include/hotstuff/client.h b/include/hotstuff/client.h index b357fde..95bcacb 100644 --- a/include/hotstuff/client.h +++ b/include/hotstuff/client.h @@ -1,3 +1,19 @@ +/** + * Copyright 2018 VMware + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #ifndef _HOTSTUFF_CLIENT_H #define _HOTSTUFF_CLIENT_H diff --git a/include/hotstuff/consensus.h b/include/hotstuff/consensus.h index e8f9765..b273f97 100644 --- a/include/hotstuff/consensus.h +++ b/include/hotstuff/consensus.h @@ -1,3 +1,20 @@ +/** + * Copyright 2018 VMware + * Copyright 2018 Ted Yin + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #ifndef _HOTSTUFF_CONSENSUS_H #define _HOTSTUFF_CONSENSUS_H diff --git a/include/hotstuff/crypto.h b/include/hotstuff/crypto.h index a867ae9..7af9d8c 100644 --- a/include/hotstuff/crypto.h +++ b/include/hotstuff/crypto.h @@ -1,3 +1,19 @@ +/** + * Copyright 2018 VMware + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #ifndef _HOTSTUFF_CRYPTO_H #define _HOTSTUFF_CRYPTO_H diff --git a/include/hotstuff/entity.h b/include/hotstuff/entity.h index f9e7bc8..9b1b4b1 100644 --- a/include/hotstuff/entity.h +++ b/include/hotstuff/entity.h @@ -1,3 +1,19 @@ +/** + * Copyright 2018 VMware + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #ifndef _HOTSTUFF_ENT_H #define _HOTSTUFF_ENT_H diff --git a/include/hotstuff/hotstuff.h b/include/hotstuff/hotstuff.h index bc8d960..91001dc 100644 --- a/include/hotstuff/hotstuff.h +++ b/include/hotstuff/hotstuff.h @@ -1,3 +1,20 @@ +/** + * Copyright 2018 VMware + * Copyright 2018 Ted Yin + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #ifndef _HOTSTUFF_CORE_H #define _HOTSTUFF_CORE_H diff --git a/include/hotstuff/liveness.h b/include/hotstuff/liveness.h index 36caca2..903ac83 100644 --- a/include/hotstuff/liveness.h +++ b/include/hotstuff/liveness.h @@ -1,3 +1,20 @@ +/** + * Copyright 2018 VMware + * Copyright 2018 Ted Yin + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #ifndef _HOTSTUFF_LIVENESS_H #define _HOTSTUFF_LIVENESS_H diff --git a/include/hotstuff/task.h b/include/hotstuff/task.h index bfb7f63..90c467b 100644 --- a/include/hotstuff/task.h +++ b/include/hotstuff/task.h @@ -1,3 +1,19 @@ +/** + * Copyright 2018 Ted Yin + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #ifndef _HOTSTUFF_WORKER_H #define _HOTSTUFF_WORKER_H diff --git a/include/hotstuff/type.h b/include/hotstuff/type.h index 784a952..e4c87d6 100644 --- a/include/hotstuff/type.h +++ b/include/hotstuff/type.h @@ -1,3 +1,19 @@ +/** + * Copyright 2018 VMware + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #ifndef _HOTSTUFF_TYPE_H #define _HOTSTUFF_TYPE_H diff --git a/include/hotstuff/util.h b/include/hotstuff/util.h index efec4be..930bc89 100644 --- a/include/hotstuff/util.h +++ b/include/hotstuff/util.h @@ -1,3 +1,19 @@ +/** + * Copyright 2018 VMware + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #ifndef _HOTSTUFF_UTIL_H #define _HOTSTUFF_UTIL_H diff --git a/src/client.cpp b/src/client.cpp index 368f746..c1b571c 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -1,3 +1,19 @@ +/** + * Copyright 2018 VMware + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #include "hotstuff/client.h" namespace hotstuff { diff --git a/src/consensus.cpp b/src/consensus.cpp index dbe79b0..8b21064 100644 --- a/src/consensus.cpp +++ b/src/consensus.cpp @@ -1,3 +1,20 @@ +/** + * Copyright 2018 VMware + * Copyright 2018 Ted Yin + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #include <cassert> #include <stack> diff --git a/src/crypto.cpp b/src/crypto.cpp index 0932652..c51cc02 100644 --- a/src/crypto.cpp +++ b/src/crypto.cpp @@ -1,3 +1,19 @@ +/** + * Copyright 2018 VMware + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #include "hotstuff/entity.h" #include "hotstuff/crypto.h" diff --git a/src/entity.cpp b/src/entity.cpp index 94b896a..e90e0f2 100644 --- a/src/entity.cpp +++ b/src/entity.cpp @@ -1,3 +1,19 @@ +/** + * Copyright 2018 VMware + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #include "hotstuff/entity.h" #include "hotstuff/hotstuff.h" diff --git a/src/hotstuff.cpp b/src/hotstuff.cpp index a8cc625..957d7b4 100644 --- a/src/hotstuff.cpp +++ b/src/hotstuff.cpp @@ -1,3 +1,20 @@ +/** + * Copyright 2018 VMware + * Copyright 2018 Ted Yin + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #include "hotstuff/hotstuff.h" #include "hotstuff/client.h" diff --git a/src/hotstuff_app.cpp b/src/hotstuff_app.cpp index ee57a3a..d14738c 100644 --- a/src/hotstuff_app.cpp +++ b/src/hotstuff_app.cpp @@ -1,3 +1,20 @@ +/** + * Copyright 2018 VMware + * Copyright 2018 Ted Yin + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #include <iostream> #include <cstring> #include <cassert> diff --git a/src/hotstuff_client.cpp b/src/hotstuff_client.cpp index e8d7b9e..97bacab 100644 --- a/src/hotstuff_client.cpp +++ b/src/hotstuff_client.cpp @@ -1,3 +1,20 @@ +/** + * Copyright 2018 VMware + * Copyright 2018 Ted Yin + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #include <cassert> #include <random> #include <signal.h> diff --git a/src/hotstuff_keygen.cpp b/src/hotstuff_keygen.cpp index 100cb01..f6ad510 100644 --- a/src/hotstuff_keygen.cpp +++ b/src/hotstuff_keygen.cpp @@ -1,3 +1,19 @@ +/** + * Copyright 2018 VMware + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #include <error.h> #include "salticidae/util.h" #include "hotstuff/crypto.h" diff --git a/src/util.cpp b/src/util.cpp index bed6e5a..57a56b1 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -1,3 +1,19 @@ +/** + * Copyright 2018 VMware + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #include "hotstuff/util.h" namespace hotstuff { |