aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2018-11-27 18:09:44 -0500
committerDeterminant <[email protected]>2018-11-27 18:09:44 -0500
commitcef09a1b9dd2197addd4f063fd6c81a2ba7d79e1 (patch)
treecd9b3c62b090ce3ca57c4316d88fdaa68fecdfed /src
parent59bac78c30b88b4a4db75b906c20f2bfe35ded41 (diff)
add license info for each source file
Diffstat (limited to 'src')
-rw-r--r--src/client.cpp16
-rw-r--r--src/consensus.cpp17
-rw-r--r--src/crypto.cpp16
-rw-r--r--src/entity.cpp16
-rw-r--r--src/hotstuff.cpp17
-rw-r--r--src/hotstuff_app.cpp17
-rw-r--r--src/hotstuff_client.cpp17
-rw-r--r--src/hotstuff_keygen.cpp16
-rw-r--r--src/util.cpp16
9 files changed, 148 insertions, 0 deletions
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 {