From 48df6b4a4d70a1d512e6281a94398b161af658e3 Mon Sep 17 00:00:00 2001 From: Sydney Anne Erickson <sydney@elixxir.io> Date: Tue, 15 Dec 2020 14:12:54 -0800 Subject: [PATCH] License --- LICENSE.md | 21 +++++++++++++++++++ api/authenticatedChannel.go | 10 +++++++-- api/client.go | 11 +++++----- api/notifications.go | 7 +++++++ api/permissioning.go | 11 +++++----- api/send.go | 7 +++++++ api/status.go | 7 +++++++ api/user.go | 7 +++++++ api/userDiscovery.go | 7 +++++++ api/version.go | 7 +++++++ auth/callback.go | 7 +++++++ auth/callbacks.go | 7 +++++++ auth/confirm.go | 13 +++++++++--- auth/fmt.go | 7 +++++++ auth/manager.go | 7 +++++++ auth/request.go | 7 +++++++ auth/verify.go | 7 +++++++ bindings/authenticatedChannels.go | 9 +++++++- bindings/callback.go | 8 ++++++- bindings/client.go | 16 +++++++------- bindings/contact.go | 8 ++++++- bindings/interfaces.go | 11 +++++----- bindings/list.go | 7 +++++++ bindings/message.go | 9 +++++++- bindings/send.go | 10 +++++++-- bindings/user.go | 7 +++++++ cmd/root.go | 11 +++++----- cmd/udb.go | 11 +++++----- cmd/version.go | 11 +++++----- cmix.go | 7 +++++++ globals/log.go | 11 +++++----- globals/statusEvents.go | 7 +++++++ globals/storage.go | 11 +++++----- globals/storage_test.go | 11 +++++----- globals/terminator.go | 11 +++++----- globals/terminator_test.go | 11 +++++----- interfaces/auth.go | 7 +++++++ interfaces/contact/contact.go | 10 +++++++-- interfaces/healthTracker.go | 7 +++++++ interfaces/message/encryptionType.go | 7 +++++++ interfaces/message/receiveMessage.go | 9 +++++++- interfaces/message/sendMessage.go | 7 +++++++ interfaces/message/type.go | 7 +++++++ interfaces/networkManager.go | 7 +++++++ interfaces/params/CMIX.go | 7 +++++++ interfaces/params/CMIX_test.go | 7 +++++++ interfaces/params/E2E.go | 7 +++++++ interfaces/params/E2E_test.go | 7 +++++++ interfaces/params/Unsafe.go | 7 +++++++ interfaces/params/keyExchange.go | 7 +++++++ interfaces/params/message.go | 7 +++++++ interfaces/params/network.go | 8 ++++++- interfaces/params/node.go | 7 +++++++ interfaces/params/rounds.go | 7 +++++++ interfaces/roundEvents.go | 7 +++++++ interfaces/switchboard.go | 7 +++++++ interfaces/user/user.go | 7 +++++++ interfaces/utility/trackResults.go | 7 +++++++ keyExchange/confirm.go | 7 +++++++ keyExchange/confirm_test.go | 7 +++++++ keyExchange/exchange.go | 7 +++++++ keyExchange/exchange_test.go | 7 +++++++ keyExchange/rekey.go | 11 +++++----- keyExchange/rekey_test.go | 7 +++++++ keyExchange/trigger.go | 7 +++++++ keyExchange/trigger_test.go | 7 +++++++ keyExchange/utils_test.go | 7 +++++++ keyExchange/xchange.pb.go | 11 +++++----- keyExchange/xchange.proto | 11 +++++----- main.go | 11 +++++----- network/follow.go | 11 +++++----- network/gateway/gateway.go | 7 +++++++ network/health/tracker.go | 11 +++++----- network/health/tracker_test.go | 11 +++++----- network/internal/internal.go | 7 +++++++ network/manager.go | 11 +++++----- network/message/bundle.go | 7 +++++++ network/message/critical.go | 7 +++++++ network/message/garbled.go | 7 +++++++ network/message/handler.go | 9 +++++++- network/message/manager.go | 7 +++++++ network/message/parse/firstMessagePart.go | 7 +++++++ network/message/parse/messagePart.go | 7 +++++++ network/message/parse/partition.go | 7 +++++++ network/message/sendCmix.go | 13 +++++++++--- network/message/sendE2E.go | 11 +++++----- network/message/sendUnsafe.go | 6 ++++++ network/node/register.go | 7 +++++++ network/node/register_test.go | 7 +++++++ network/rounds/check.go | 7 +++++++ network/rounds/historical.go | 11 +++++----- network/rounds/manager.go | 7 +++++++ network/rounds/processingRounds.go | 7 +++++++ network/rounds/processingRounds_test.go | 7 +++++++ network/rounds/retrieve.go | 7 +++++++ network/send.go | 7 +++++++ permissioning/permissioning.go | 7 +++++++ permissioning/permissioning_test.go | 7 +++++++ permissioning/register.go | 7 +++++++ permissioning/register_test.go | 7 +++++++ permissioning/remoteVersion.go | 7 +++++++ permissioning/remoteVersion_test.go | 7 +++++++ stoppable/bindings.go | 7 +++++++ stoppable/cleanup.go | 7 +++++++ stoppable/cleanup_test.go | 7 +++++++ stoppable/multi.go | 7 +++++++ stoppable/multi_test.go | 7 +++++++ stoppable/single.go | 7 +++++++ stoppable/single_test.go | 7 +++++++ stoppable/stoppable.go | 7 +++++++ storage/auth/fingerprint.go | 7 +++++++ storage/auth/request.go | 7 +++++++ storage/auth/sentRequest.go | 7 +++++++ storage/auth/store.go | 7 +++++++ storage/auth/store_test.go | 15 +++++++++---- storage/cmix/key.go | 7 +++++++ storage/cmix/key_test.go | 11 +++++----- storage/cmix/roundKeys.go | 7 +++++++ storage/cmix/roundKeys_test.go | 7 +++++++ storage/cmix/store.go | 11 +++++----- storage/cmix/store_test.go | 11 +++++----- storage/conversation/partner.go | 7 +++++++ storage/conversation/partner_test.go | 7 +++++++ storage/conversation/store.go | 7 +++++++ storage/conversation/store_test.go | 7 +++++++ storage/e2e/context.go | 7 +++++++ storage/e2e/fingerprintAccess.go | 7 +++++++ storage/e2e/key.go | 7 +++++++ storage/e2e/key_test.go | 11 +++++----- storage/e2e/manager.go | 15 +++++++------ storage/e2e/manager_test.go | 7 +++++++ storage/e2e/negotiation.go | 7 +++++++ storage/e2e/params.go | 11 +++++----- storage/e2e/params_test.go | 7 +++++++ storage/e2e/relationship.go | 12 +++++------ storage/e2e/relationshipFingerprint.go | 7 +++++++ storage/e2e/relationshipType.go | 7 +++++++ storage/e2e/relationship_test.go | 9 ++++++-- storage/e2e/session.go | 19 +++++++++-------- storage/e2e/sessionID.go | 7 +++++++ storage/e2e/session_test.go | 7 +++++++ storage/e2e/stateVector.go | 11 +++++----- storage/e2e/stateVector_test.go | 7 +++++++ storage/e2e/status.go | 7 +++++++ storage/e2e/status_test.go | 7 +++++++ storage/e2e/store.go | 14 ++++++------- storage/e2e/store_test.go | 7 +++++++ storage/messages.go | 7 +++++++ storage/ndf.go | 7 +++++++ storage/partition/multiPartMessage.go | 8 ++++++- storage/partition/multiPartMessage_test.go | 7 +++++++ storage/partition/part.go | 7 +++++++ storage/partition/part_test.go | 7 +++++++ storage/partition/store.go | 7 +++++++ storage/partition/store_test.go | 7 +++++++ storage/regCode.go | 9 +++++++- storage/regStatus.go | 11 +++++----- storage/session.go | 11 +++++----- storage/session_test.go | 11 +++++----- storage/user.go | 7 +++++++ storage/user/cryptographic.go | 7 +++++++ storage/user/cryptographic_test.go | 7 +++++++ storage/user/regValidationSig.go | 7 +++++++ storage/user/regValidationSig_test.go | 7 +++++++ storage/user/user.go | 9 +++++++- storage/user/user_test.go | 7 +++++++ storage/user/username.go | 7 +++++++ storage/user/username_test.go | 7 +++++++ storage/utility/NDF.go | 7 +++++++ storage/utility/cmixMessageBuffer.go | 7 +++++++ storage/utility/cmixMessageBuffer_test.go | 7 +++++++ storage/utility/contact.go | 7 +++++++ storage/utility/dh.go | 7 +++++++ storage/utility/dh_test.go | 7 +++++++ storage/utility/e2eMessageBuffer.go | 7 +++++++ storage/utility/e2eMessageBuffer_test.go | 7 +++++++ storage/utility/group.go | 7 +++++++ storage/utility/group_test.go | 7 +++++++ storage/utility/knownRounds.go | 7 +++++++ storage/utility/knownRounds_test.go | 7 +++++++ storage/utility/messageBuffer.go | 7 +++++++ storage/utility/messageBuffer_test.go | 7 +++++++ storage/utility/meteredCmixMessageBuffer.go | 7 +++++++ .../utility/meteredCmixMessageBuffer_test.go | 7 +++++++ storage/versioned/kv.go | 11 +++++----- storage/versioned/kv_test.go | 11 +++++----- storage/versioned/object.go | 7 +++++++ storage/versioned/object_test.go | 7 +++++++ switchboard/any.go | 7 +++++++ switchboard/any_test.go | 7 +++++++ switchboard/byID.go | 7 +++++++ switchboard/byID_test.go | 7 +++++++ switchboard/byType.go | 7 +++++++ switchboard/byType_test.go | 7 +++++++ switchboard/listener.go | 11 +++++----- switchboard/listener_test.go | 11 +++++----- switchboard/switchboard.go | 7 +++++++ switchboard/switchboard_test.go | 7 +++++++ ud/udMessages.proto | 11 +++++----- 199 files changed, 1392 insertions(+), 242 deletions(-) create mode 100644 LICENSE.md diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 000000000..03ce3f2f3 --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,21 @@ +Copyright (c) 2020, xx network SEZC + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this +list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright notice, +this list of conditions and the following disclaimer in the documentation and/or +other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/api/authenticatedChannel.go b/api/authenticatedChannel.go index a9125a030..9d2630400 100644 --- a/api/authenticatedChannel.go +++ b/api/authenticatedChannel.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package api import ( @@ -11,7 +18,6 @@ import ( "gitlab.com/xx_network/primitives/id" ) - // RequestAuthenticatedChannel sends a request to another party to establish an // authenticated channel // It will not run if the network status is not healthy @@ -113,4 +119,4 @@ func (c *Client) MakePrecannedContact(precannedID uint) contact.Contact { OwnershipProof: nil, Facts: make([]fact.Fact, 0), } -} \ No newline at end of file +} diff --git a/api/client.go b/api/client.go index ba9817414..f7f879de1 100644 --- a/api/client.go +++ b/api/client.go @@ -1,8 +1,9 @@ -//////////////////////////////////////////////////////////////////////////////// -// Copyright © 2020 Privategrity Corporation / -// / -// All rights reserved. / -//////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// package api diff --git a/api/notifications.go b/api/notifications.go index 119b675f8..dff197776 100644 --- a/api/notifications.go +++ b/api/notifications.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package api import jww "github.com/spf13/jwalterweatherman" diff --git a/api/permissioning.go b/api/permissioning.go index 1d0fe051f..c9d018d89 100644 --- a/api/permissioning.go +++ b/api/permissioning.go @@ -1,8 +1,9 @@ -//////////////////////////////////////////////////////////////////////////////// -// Copyright © 2020 Privategrity Corporation / -// / -// All rights reserved. / -//////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// package api diff --git a/api/send.go b/api/send.go index e1a9bd231..84256b206 100644 --- a/api/send.go +++ b/api/send.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package api import ( diff --git a/api/status.go b/api/status.go index cebfac0f4..7fd31ae93 100644 --- a/api/status.go +++ b/api/status.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package api import ( diff --git a/api/user.go b/api/user.go index de6f83547..604aa796c 100644 --- a/api/user.go +++ b/api/user.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package api import ( diff --git a/api/userDiscovery.go b/api/userDiscovery.go index 680ed4fac..d414daf35 100644 --- a/api/userDiscovery.go +++ b/api/userDiscovery.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package api import ( diff --git a/api/version.go b/api/version.go index 30ddb01b6..a8c26beae 100644 --- a/api/version.go +++ b/api/version.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package api import ( diff --git a/auth/callback.go b/auth/callback.go index 060d74030..a5ccef9fd 100644 --- a/auth/callback.go +++ b/auth/callback.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package auth import ( diff --git a/auth/callbacks.go b/auth/callbacks.go index 6eb758af2..2168c82d3 100644 --- a/auth/callbacks.go +++ b/auth/callbacks.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package auth import ( diff --git a/auth/confirm.go b/auth/confirm.go index 2ffa7a979..a58306c2d 100644 --- a/auth/confirm.go +++ b/auth/confirm.go @@ -1,21 +1,28 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package auth import ( "github.com/pkg/errors" + jww "github.com/spf13/jwalterweatherman" "gitlab.com/elixxir/client/interfaces" "gitlab.com/elixxir/client/interfaces/contact" "gitlab.com/elixxir/client/interfaces/params" "gitlab.com/elixxir/client/interfaces/utility" "gitlab.com/elixxir/client/storage" "gitlab.com/elixxir/client/storage/e2e" + ds "gitlab.com/elixxir/comms/network/dataStructures" "gitlab.com/elixxir/crypto/diffieHellman" + cAuth "gitlab.com/elixxir/crypto/e2e/auth" "gitlab.com/elixxir/primitives/format" "gitlab.com/elixxir/primitives/states" "io" - cAuth "gitlab.com/elixxir/crypto/e2e/auth" "time" - ds "gitlab.com/elixxir/comms/network/dataStructures" - jww "github.com/spf13/jwalterweatherman" ) func ConfirmRequestAuth(partner contact.Contact, rng io.Reader, diff --git a/auth/fmt.go b/auth/fmt.go index 04605c957..deb1dad1a 100644 --- a/auth/fmt.go +++ b/auth/fmt.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package auth import ( diff --git a/auth/manager.go b/auth/manager.go index 16222cbbb..b5803d69f 100644 --- a/auth/manager.go +++ b/auth/manager.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package auth import ( diff --git a/auth/request.go b/auth/request.go index ff2811c49..906aa9539 100644 --- a/auth/request.go +++ b/auth/request.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package auth import ( diff --git a/auth/verify.go b/auth/verify.go index c456d738d..76850a17d 100644 --- a/auth/verify.go +++ b/auth/verify.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package auth import ( diff --git a/bindings/authenticatedChannels.go b/bindings/authenticatedChannels.go index 512e8de5e..70ff02851 100644 --- a/bindings/authenticatedChannels.go +++ b/bindings/authenticatedChannels.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package bindings import ( @@ -105,4 +112,4 @@ func (c *Client) VerifyOwnership(receivedMarshaled, verifiedMarshaled []byte) (b } return c.api.VerifyOwnership(received, verified), nil -} \ No newline at end of file +} diff --git a/bindings/callback.go b/bindings/callback.go index 5f6ed82d1..68ca5646e 100644 --- a/bindings/callback.go +++ b/bindings/callback.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package bindings import ( @@ -24,7 +31,6 @@ type NetworkHealthCallback interface { Callback(bool) } - // RoundEventHandler handles round events happening on the cMix network. type RoundEventCallback interface { EventCallback(rid, state int, timedOut bool) diff --git a/bindings/client.go b/bindings/client.go index 0b96819f3..2789061f4 100644 --- a/bindings/client.go +++ b/bindings/client.go @@ -1,8 +1,9 @@ -//////////////////////////////////////////////////////////////////////////////// -// Copyright © 2019 Privategrity Corporation / -// / -// All rights reserved. / -//////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// package bindings @@ -121,9 +122,6 @@ func LogLevel(level int) error { return nil } - - - //Unmarshals a marshaled contact object, returns an error if it fails func UnmarshalContact(b []byte) (*Contact, error) { c, err := contact.Unmarshal(b) @@ -248,7 +246,7 @@ func (c *Client) RegisterListener(uid []byte, msgType int, mt := message.Type(msgType) f := func(item message.Receive) { - listener.Hear(&Message{r:item}) + listener.Hear(&Message{r: item}) } lid := c.api.GetSwitchboard().RegisterFunc(name, u, mt, f) diff --git a/bindings/contact.go b/bindings/contact.go index 2bcc1d2b9..cfebb0782 100644 --- a/bindings/contact.go +++ b/bindings/contact.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package bindings import ( @@ -19,7 +26,6 @@ func (f *Fact) Type() int { return int(f.f.T) } - /* contact object*/ type Contact struct { c *contact.Contact diff --git a/bindings/interfaces.go b/bindings/interfaces.go index 5e5970d20..f827aefb5 100644 --- a/bindings/interfaces.go +++ b/bindings/interfaces.go @@ -1,8 +1,9 @@ -//////////////////////////////////////////////////////////////////////////////// -// Copyright © 2019 Privategrity Corporation / -// / -// All rights reserved. / -//////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// package bindings diff --git a/bindings/list.go b/bindings/list.go index 0edfb41be..5657bcb45 100644 --- a/bindings/list.go +++ b/bindings/list.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package bindings import ( diff --git a/bindings/message.go b/bindings/message.go index 01d807aba..978a62743 100644 --- a/bindings/message.go +++ b/bindings/message.go @@ -1,10 +1,17 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package bindings import "gitlab.com/elixxir/client/interfaces/message" // Message is a message received from the cMix network in the clear // or that has been decrypted using established E2E keys. -type Message struct{ +type Message struct { r message.Receive } diff --git a/bindings/send.go b/bindings/send.go index a55401787..f9c116d5b 100644 --- a/bindings/send.go +++ b/bindings/send.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package bindings import ( @@ -75,7 +82,6 @@ func (c *Client) SendUnsafe(recipient, payload []byte, return &RoundList{list: rids}, nil } - // SendE2E sends an end-to-end payload to the provided recipient with // the provided msgType. Returns the list of rounds in which parts of // the message were sent or an error if it fails. @@ -123,4 +129,4 @@ func (sr *SendReport) GetMessageID() []byte { func (sr *SendReport) Marshal() ([]byte, error) { return json.Marshal(sr) -} \ No newline at end of file +} diff --git a/bindings/user.go b/bindings/user.go index e006f0c1e..569424640 100644 --- a/bindings/user.go +++ b/bindings/user.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package bindings import ( diff --git a/cmd/root.go b/cmd/root.go index 1405882e7..a85e29bd2 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -1,8 +1,9 @@ -//////////////////////////////////////////////////////////////////////////////// -// Copyright © 2020 Privategrity Corporation / -// / -// All rights reserved. / -//////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// // Package cmd initializes the CLI and config parsers as well as the logger. package cmd diff --git a/cmd/udb.go b/cmd/udb.go index a0c5982af..6f11250db 100644 --- a/cmd/udb.go +++ b/cmd/udb.go @@ -1,8 +1,9 @@ -//////////////////////////////////////////////////////////////////////////////// -// Copyright © 2019 Privategrity Corporation / -// / -// All rights reserved. / -//////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// package cmd diff --git a/cmd/version.go b/cmd/version.go index c623faf13..17ca3b704 100644 --- a/cmd/version.go +++ b/cmd/version.go @@ -1,8 +1,9 @@ -//////////////////////////////////////////////////////////////////////////////// -// Copyright © 2020 Privategrity Corporation / -// / -// All rights reserved. / -//////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// // Handles command-line version functionality diff --git a/cmix.go b/cmix.go index 06ab7d0f9..69ee45671 100644 --- a/cmix.go +++ b/cmix.go @@ -1 +1,8 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package main diff --git a/globals/log.go b/globals/log.go index e9bfc4a45..cbcdce07b 100644 --- a/globals/log.go +++ b/globals/log.go @@ -1,8 +1,9 @@ -//////////////////////////////////////////////////////////////////////////////// -// Copyright © 2019 Privategrity Corporation / -// / -// All rights reserved. / -//////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// package globals diff --git a/globals/statusEvents.go b/globals/statusEvents.go index 834db9f61..9695871da 100644 --- a/globals/statusEvents.go +++ b/globals/statusEvents.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package globals //Registration diff --git a/globals/storage.go b/globals/storage.go index aecd54789..63f5b2b36 100644 --- a/globals/storage.go +++ b/globals/storage.go @@ -1,8 +1,9 @@ -//////////////////////////////////////////////////////////////////////////////// -// Copyright © 2019 Privategrity Corporation / -// / -// All rights reserved. / -//////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// package globals diff --git a/globals/storage_test.go b/globals/storage_test.go index 96abc9532..f7bd60f34 100644 --- a/globals/storage_test.go +++ b/globals/storage_test.go @@ -1,8 +1,9 @@ -//////////////////////////////////////////////////////////////////////////////// -// Copyright © 2019 Privategrity Corporation / -// / -// All rights reserved. / -//////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// package globals diff --git a/globals/terminator.go b/globals/terminator.go index 5b17199f2..0b3155e19 100644 --- a/globals/terminator.go +++ b/globals/terminator.go @@ -1,8 +1,9 @@ -//////////////////////////////////////////////////////////////////////////////// -// Copyright © 2019 Privategrity Corporation / -// / -// All rights reserved. / -//////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// package globals diff --git a/globals/terminator_test.go b/globals/terminator_test.go index b43c8cc03..8d18841de 100644 --- a/globals/terminator_test.go +++ b/globals/terminator_test.go @@ -1,8 +1,9 @@ -//////////////////////////////////////////////////////////////////////////////// -// Copyright © 2019 Privategrity Corporation / -// / -// All rights reserved. / -//////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// package globals diff --git a/interfaces/auth.go b/interfaces/auth.go index 04751e896..68e18be6f 100644 --- a/interfaces/auth.go +++ b/interfaces/auth.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package interfaces import ( diff --git a/interfaces/contact/contact.go b/interfaces/contact/contact.go index 6c6e070d0..c060a74a1 100644 --- a/interfaces/contact/contact.go +++ b/interfaces/contact/contact.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package contact import ( @@ -11,7 +18,6 @@ import ( const factDelimiter = "," const factBreak = ";" - // Contact implements the Contact interface defined in interface/contact.go, // in go, the structure is meant to be edited directly, the functions are for // bindings compatibility @@ -39,4 +45,4 @@ func Unmarshal(b []byte) (Contact, error) { } } return c, nil -} \ No newline at end of file +} diff --git a/interfaces/healthTracker.go b/interfaces/healthTracker.go index 6208e6cdc..faa31e8e4 100644 --- a/interfaces/healthTracker.go +++ b/interfaces/healthTracker.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package interfaces type HealthTracker interface { diff --git a/interfaces/message/encryptionType.go b/interfaces/message/encryptionType.go index 5afdd855a..7d74694e8 100644 --- a/interfaces/message/encryptionType.go +++ b/interfaces/message/encryptionType.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package message type EncryptionType uint8 diff --git a/interfaces/message/receiveMessage.go b/interfaces/message/receiveMessage.go index 3ecf1b138..faa61d61f 100644 --- a/interfaces/message/receiveMessage.go +++ b/interfaces/message/receiveMessage.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package message import ( @@ -13,4 +20,4 @@ type Receive struct { Sender *id.ID Timestamp time.Time Encryption EncryptionType -} \ No newline at end of file +} diff --git a/interfaces/message/sendMessage.go b/interfaces/message/sendMessage.go index 1e639669f..88795e95c 100644 --- a/interfaces/message/sendMessage.go +++ b/interfaces/message/sendMessage.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package message import "gitlab.com/xx_network/primitives/id" diff --git a/interfaces/message/type.go b/interfaces/message/type.go index cab493bb9..71a1c72ff 100644 --- a/interfaces/message/type.go +++ b/interfaces/message/type.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package message const TypeLen = 4 diff --git a/interfaces/networkManager.go b/interfaces/networkManager.go index 90fa41485..541dc5b14 100644 --- a/interfaces/networkManager.go +++ b/interfaces/networkManager.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package interfaces import ( diff --git a/interfaces/params/CMIX.go b/interfaces/params/CMIX.go index dc8658ea7..8c5505999 100644 --- a/interfaces/params/CMIX.go +++ b/interfaces/params/CMIX.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package params import "time" diff --git a/interfaces/params/CMIX_test.go b/interfaces/params/CMIX_test.go index 5af967495..01af75d68 100644 --- a/interfaces/params/CMIX_test.go +++ b/interfaces/params/CMIX_test.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package params import ( diff --git a/interfaces/params/E2E.go b/interfaces/params/E2E.go index 22d6cd98b..a62b5ad58 100644 --- a/interfaces/params/E2E.go +++ b/interfaces/params/E2E.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package params import "fmt" diff --git a/interfaces/params/E2E_test.go b/interfaces/params/E2E_test.go index 06db149a4..09230e135 100644 --- a/interfaces/params/E2E_test.go +++ b/interfaces/params/E2E_test.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package params import "testing" diff --git a/interfaces/params/Unsafe.go b/interfaces/params/Unsafe.go index b18c8c031..19654d88e 100644 --- a/interfaces/params/Unsafe.go +++ b/interfaces/params/Unsafe.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package params type Unsafe struct { diff --git a/interfaces/params/keyExchange.go b/interfaces/params/keyExchange.go index 712b16580..203703d22 100644 --- a/interfaces/params/keyExchange.go +++ b/interfaces/params/keyExchange.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package params import "time" diff --git a/interfaces/params/message.go b/interfaces/params/message.go index 2e1f3858f..cc452a85f 100644 --- a/interfaces/params/message.go +++ b/interfaces/params/message.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package params import "time" diff --git a/interfaces/params/network.go b/interfaces/params/network.go index 6c369a9cc..cf7a2b1a1 100644 --- a/interfaces/params/network.go +++ b/interfaces/params/network.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package params import ( @@ -14,7 +21,6 @@ type Network struct { // the network is in a bad state NetworkHealthTimeout time.Duration - Rounds Messages } diff --git a/interfaces/params/node.go b/interfaces/params/node.go index 86de80d77..150cc71f3 100644 --- a/interfaces/params/node.go +++ b/interfaces/params/node.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package params //import ( diff --git a/interfaces/params/rounds.go b/interfaces/params/rounds.go index 9cd03e4c7..73e5ac613 100644 --- a/interfaces/params/rounds.go +++ b/interfaces/params/rounds.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package params import "time" diff --git a/interfaces/roundEvents.go b/interfaces/roundEvents.go index a3f27f763..7228649de 100644 --- a/interfaces/roundEvents.go +++ b/interfaces/roundEvents.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package interfaces import ( diff --git a/interfaces/switchboard.go b/interfaces/switchboard.go index 3ebb9d8b2..a90cee09f 100644 --- a/interfaces/switchboard.go +++ b/interfaces/switchboard.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package interfaces import ( diff --git a/interfaces/user/user.go b/interfaces/user/user.go index 094f9386a..0f59bf81b 100644 --- a/interfaces/user/user.go +++ b/interfaces/user/user.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package user import ( diff --git a/interfaces/utility/trackResults.go b/interfaces/utility/trackResults.go index 5f1fc6453..70b5e43f4 100644 --- a/interfaces/utility/trackResults.go +++ b/interfaces/utility/trackResults.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package utility import ( diff --git a/keyExchange/confirm.go b/keyExchange/confirm.go index 8083b3d8a..ce31c0c6f 100644 --- a/keyExchange/confirm.go +++ b/keyExchange/confirm.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package keyExchange import ( diff --git a/keyExchange/confirm_test.go b/keyExchange/confirm_test.go index d9fd6aa61..188a58686 100644 --- a/keyExchange/confirm_test.go +++ b/keyExchange/confirm_test.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package keyExchange import ( diff --git a/keyExchange/exchange.go b/keyExchange/exchange.go index d58b59ac8..caf7c7a59 100644 --- a/keyExchange/exchange.go +++ b/keyExchange/exchange.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package keyExchange import ( diff --git a/keyExchange/exchange_test.go b/keyExchange/exchange_test.go index 9607b6bd1..40265bc30 100644 --- a/keyExchange/exchange_test.go +++ b/keyExchange/exchange_test.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package keyExchange import ( diff --git a/keyExchange/rekey.go b/keyExchange/rekey.go index 4092aaa54..8391f2653 100644 --- a/keyExchange/rekey.go +++ b/keyExchange/rekey.go @@ -1,8 +1,9 @@ -//////////////////////////////////////////////////////////////////////////////// -// Copyright © 2020 Privategrity Corporation / -// / -// All rights reserved. / -//////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// package keyExchange diff --git a/keyExchange/rekey_test.go b/keyExchange/rekey_test.go index e44693aab..3e7d58532 100644 --- a/keyExchange/rekey_test.go +++ b/keyExchange/rekey_test.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package keyExchange /* diff --git a/keyExchange/trigger.go b/keyExchange/trigger.go index 105c0b436..5019dc05f 100644 --- a/keyExchange/trigger.go +++ b/keyExchange/trigger.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package keyExchange import ( diff --git a/keyExchange/trigger_test.go b/keyExchange/trigger_test.go index d0d007376..60c7b4c65 100644 --- a/keyExchange/trigger_test.go +++ b/keyExchange/trigger_test.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package keyExchange import ( diff --git a/keyExchange/utils_test.go b/keyExchange/utils_test.go index 2e1ef81e4..4fc72a604 100644 --- a/keyExchange/utils_test.go +++ b/keyExchange/utils_test.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package keyExchange import ( diff --git a/keyExchange/xchange.pb.go b/keyExchange/xchange.pb.go index c7923f473..27a276b4c 100644 --- a/keyExchange/xchange.pb.go +++ b/keyExchange/xchange.pb.go @@ -1,8 +1,9 @@ -//////////////////////////////////////////////////////////////////////////////// -// Copyright © 2018 Privategrity Corporation / -// / -// All rights reserved. / -//////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// // Call ./generate.sh to generate the protocol buffer code diff --git a/keyExchange/xchange.proto b/keyExchange/xchange.proto index 76dac5e96..633c79224 100644 --- a/keyExchange/xchange.proto +++ b/keyExchange/xchange.proto @@ -1,8 +1,9 @@ -//////////////////////////////////////////////////////////////////////////////// -// Copyright © 2018 Privategrity Corporation / -// / -// All rights reserved. / -//////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// // Call ./generate.sh to generate the protocol buffer code diff --git a/main.go b/main.go index a39e9f5c9..47a38ce28 100644 --- a/main.go +++ b/main.go @@ -1,8 +1,9 @@ -//////////////////////////////////////////////////////////////////////////////// -// Copyright © 2019 Privategrity Corporation / -// / -// All rights reserved. / -//////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// package main diff --git a/network/follow.go b/network/follow.go index e0bbe4d43..b4bb7327a 100644 --- a/network/follow.go +++ b/network/follow.go @@ -1,8 +1,9 @@ -//////////////////////////////////////////////////////////////////////////////// -// Copyright © 2020 Privategrity Corporation / -// / -// All rights reserved. / -//////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// package network diff --git a/network/gateway/gateway.go b/network/gateway/gateway.go index af977178a..1c2c247f3 100644 --- a/network/gateway/gateway.go +++ b/network/gateway/gateway.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package gateway import ( diff --git a/network/health/tracker.go b/network/health/tracker.go index c7d94ce7f..c153cedfa 100644 --- a/network/health/tracker.go +++ b/network/health/tracker.go @@ -1,8 +1,9 @@ -//////////////////////////////////////////////////////////////////////////////// -// Copyright © 2020 Privategrity Corporation / -// / -// All rights reserved. / -//////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// // Contains functionality related to the event model driven network health tracker diff --git a/network/health/tracker_test.go b/network/health/tracker_test.go index f8fb2c825..318a69f79 100644 --- a/network/health/tracker_test.go +++ b/network/health/tracker_test.go @@ -1,8 +1,9 @@ -//////////////////////////////////////////////////////////////////////////////// -// Copyright © 2020 Privategrity Corporation / -// / -// All rights reserved. / -//////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// package health diff --git a/network/internal/internal.go b/network/internal/internal.go index 290b328c9..ae0580da5 100644 --- a/network/internal/internal.go +++ b/network/internal/internal.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package internal import ( diff --git a/network/manager.go b/network/manager.go index eaa1ec7d6..fff66d500 100644 --- a/network/manager.go +++ b/network/manager.go @@ -1,8 +1,9 @@ -//////////////////////////////////////////////////////////////////////////////// -// Copyright © 2020 Privategrity Corporation / -// / -// All rights reserved. / -//////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// package network diff --git a/network/message/bundle.go b/network/message/bundle.go index af35baf9e..84962ded3 100644 --- a/network/message/bundle.go +++ b/network/message/bundle.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package message import ( diff --git a/network/message/critical.go b/network/message/critical.go index f4e7971de..c6dbfbd9f 100644 --- a/network/message/critical.go +++ b/network/message/critical.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package message import ( diff --git a/network/message/garbled.go b/network/message/garbled.go index 56d20bd27..b5ddc1b0f 100644 --- a/network/message/garbled.go +++ b/network/message/garbled.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package message import ( diff --git a/network/message/handler.go b/network/message/handler.go index 8ee997259..6a3d5bb2a 100644 --- a/network/message/handler.go +++ b/network/message/handler.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package message import ( @@ -92,4 +99,4 @@ func (m *Manager) handleMessage(ecrMsg format.Message) { m.Switchboard.Speak(xxMsg) } } -} \ No newline at end of file +} diff --git a/network/message/manager.go b/network/message/manager.go index 42b8f2407..ca4a1c0f4 100644 --- a/network/message/manager.go +++ b/network/message/manager.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package message import ( diff --git a/network/message/parse/firstMessagePart.go b/network/message/parse/firstMessagePart.go index 1d928536a..958a38699 100644 --- a/network/message/parse/firstMessagePart.go +++ b/network/message/parse/firstMessagePart.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package parse import ( diff --git a/network/message/parse/messagePart.go b/network/message/parse/messagePart.go index ac9b8f114..815544be8 100644 --- a/network/message/parse/messagePart.go +++ b/network/message/parse/messagePart.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package parse import ( diff --git a/network/message/parse/partition.go b/network/message/parse/partition.go index 6f77165d6..0b690a5be 100644 --- a/network/message/parse/partition.go +++ b/network/message/parse/partition.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package parse import ( diff --git a/network/message/sendCmix.go b/network/message/sendCmix.go index 162ff37ce..76a092ec9 100644 --- a/network/message/sendCmix.go +++ b/network/message/sendCmix.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package message import ( @@ -15,7 +22,7 @@ import ( "time" ) -const sendTimeBuffer = uint64(100*time.Millisecond) +const sendTimeBuffer = uint64(100 * time.Millisecond) // WARNING: Potentially Unsafe // Payloads send are not End to End encrypted, MetaData is NOT protected with @@ -42,8 +49,8 @@ func (m *Manager) SendCMIX(msg format.Message, param params.CMIX) (id.Round, err //find the best round to send to, excluding attempted rounds bestRound, _ := m.Instance.GetWaitingRounds().GetUpcomingRealtime(remainingTime, attempted) - if (bestRound.Timestamps[states.REALTIME]+sendTimeBuffer)> - uint64(time.Now().UnixNano()){ + if (bestRound.Timestamps[states.REALTIME] + sendTimeBuffer) > + uint64(time.Now().UnixNano()) { jww.WARN.Println("Round received which has already started" + " realtime") continue diff --git a/network/message/sendE2E.go b/network/message/sendE2E.go index 2d92de042..04e24e8e4 100644 --- a/network/message/sendE2E.go +++ b/network/message/sendE2E.go @@ -1,8 +1,9 @@ -//////////////////////////////////////////////////////////////////////////////// -// Copyright © 2020 Privategrity Corporation / -// / -// All rights reserved. / -//////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// package message diff --git a/network/message/sendUnsafe.go b/network/message/sendUnsafe.go index 88a1ef2d0..b4be55bd5 100644 --- a/network/message/sendUnsafe.go +++ b/network/message/sendUnsafe.go @@ -1,3 +1,9 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// package message import ( diff --git a/network/node/register.go b/network/node/register.go index 51ec459a7..b0a32b611 100644 --- a/network/node/register.go +++ b/network/node/register.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package node import ( diff --git a/network/node/register_test.go b/network/node/register_test.go index 07c388885..95d0765bf 100644 --- a/network/node/register_test.go +++ b/network/node/register_test.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package node import ( diff --git a/network/rounds/check.go b/network/rounds/check.go index d6ddf537e..72d31bed5 100644 --- a/network/rounds/check.go +++ b/network/rounds/check.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package rounds import ( diff --git a/network/rounds/historical.go b/network/rounds/historical.go index d582ba204..6b8fd8a53 100644 --- a/network/rounds/historical.go +++ b/network/rounds/historical.go @@ -1,8 +1,9 @@ -//////////////////////////////////////////////////////////////////////////////// -// Copyright © 2020 Privategrity Corporation / -// / -// All rights reserved. / -//////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// package rounds diff --git a/network/rounds/manager.go b/network/rounds/manager.go index ccd0ec6d7..3c3221474 100644 --- a/network/rounds/manager.go +++ b/network/rounds/manager.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package rounds import ( diff --git a/network/rounds/processingRounds.go b/network/rounds/processingRounds.go index 436736812..8058154ff 100644 --- a/network/rounds/processingRounds.go +++ b/network/rounds/processingRounds.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package rounds // File for storing info about which rounds are processing diff --git a/network/rounds/processingRounds_test.go b/network/rounds/processingRounds_test.go index 8b61ad6d7..8f0dd8934 100644 --- a/network/rounds/processingRounds_test.go +++ b/network/rounds/processingRounds_test.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package rounds // Testing functions for Processing Round structure diff --git a/network/rounds/retrieve.go b/network/rounds/retrieve.go index 5c3540867..0762c3a19 100644 --- a/network/rounds/retrieve.go +++ b/network/rounds/retrieve.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package rounds import ( diff --git a/network/send.go b/network/send.go index 2d15eb377..cd3d13da4 100644 --- a/network/send.go +++ b/network/send.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package network import ( diff --git a/permissioning/permissioning.go b/permissioning/permissioning.go index 51d8803a9..ebe00b3c3 100644 --- a/permissioning/permissioning.go +++ b/permissioning/permissioning.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package permissioning import ( diff --git a/permissioning/permissioning_test.go b/permissioning/permissioning_test.go index 7b34f522b..7f691f3a4 100644 --- a/permissioning/permissioning_test.go +++ b/permissioning/permissioning_test.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package permissioning import ( diff --git a/permissioning/register.go b/permissioning/register.go index b7a186937..5d5068053 100644 --- a/permissioning/register.go +++ b/permissioning/register.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package permissioning import ( diff --git a/permissioning/register_test.go b/permissioning/register_test.go index c6a70f185..3f63afff2 100644 --- a/permissioning/register_test.go +++ b/permissioning/register_test.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package permissioning import ( diff --git a/permissioning/remoteVersion.go b/permissioning/remoteVersion.go index a424139ba..95bf44fc5 100644 --- a/permissioning/remoteVersion.go +++ b/permissioning/remoteVersion.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package permissioning import ( diff --git a/permissioning/remoteVersion_test.go b/permissioning/remoteVersion_test.go index e2ae1f4d3..68c76466a 100644 --- a/permissioning/remoteVersion_test.go +++ b/permissioning/remoteVersion_test.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package permissioning import ( diff --git a/stoppable/bindings.go b/stoppable/bindings.go index 73e879f55..55784d652 100644 --- a/stoppable/bindings.go +++ b/stoppable/bindings.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package stoppable import "time" diff --git a/stoppable/cleanup.go b/stoppable/cleanup.go index a733d74bc..c721f3605 100644 --- a/stoppable/cleanup.go +++ b/stoppable/cleanup.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package stoppable import ( diff --git a/stoppable/cleanup_test.go b/stoppable/cleanup_test.go index 3d808212a..8bc7fe0be 100644 --- a/stoppable/cleanup_test.go +++ b/stoppable/cleanup_test.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package stoppable import ( diff --git a/stoppable/multi.go b/stoppable/multi.go index 061be492d..0636b84fa 100644 --- a/stoppable/multi.go +++ b/stoppable/multi.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package stoppable import ( diff --git a/stoppable/multi_test.go b/stoppable/multi_test.go index 70f90e286..5999f838a 100644 --- a/stoppable/multi_test.go +++ b/stoppable/multi_test.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package stoppable import ( diff --git a/stoppable/single.go b/stoppable/single.go index c5eadaefa..8821db88e 100644 --- a/stoppable/single.go +++ b/stoppable/single.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package stoppable import ( diff --git a/stoppable/single_test.go b/stoppable/single_test.go index 0a6aac667..ceb5a9ecf 100644 --- a/stoppable/single_test.go +++ b/stoppable/single_test.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package stoppable import ( diff --git a/stoppable/stoppable.go b/stoppable/stoppable.go index e4436d5a6..06947eb3b 100644 --- a/stoppable/stoppable.go +++ b/stoppable/stoppable.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package stoppable import "time" diff --git a/storage/auth/fingerprint.go b/storage/auth/fingerprint.go index 7dda9ae08..04d0571c8 100644 --- a/storage/auth/fingerprint.go +++ b/storage/auth/fingerprint.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package auth import "gitlab.com/elixxir/crypto/cyclic" diff --git a/storage/auth/request.go b/storage/auth/request.go index e54632c2b..c33d9b02c 100644 --- a/storage/auth/request.go +++ b/storage/auth/request.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package auth import ( diff --git a/storage/auth/sentRequest.go b/storage/auth/sentRequest.go index 94a7a6ed3..d96fcaf0c 100644 --- a/storage/auth/sentRequest.go +++ b/storage/auth/sentRequest.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package auth import ( diff --git a/storage/auth/store.go b/storage/auth/store.go index fe129a787..9da7cb1cd 100644 --- a/storage/auth/store.go +++ b/storage/auth/store.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package auth import ( diff --git a/storage/auth/store_test.go b/storage/auth/store_test.go index dc938688e..25fd59ccb 100644 --- a/storage/auth/store_test.go +++ b/storage/auth/store_test.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package auth import ( @@ -23,7 +30,7 @@ func TestNewStore(t *testing.T) { pubKeys := make([]*cyclic.Int, 10) for i := range privKeys { privKeys[i] = grp.NewInt(rand.Int63n(172)) - pubKeys[i] = grp.ExpG(privKeys[i],grp.NewInt(1)) + pubKeys[i] = grp.ExpG(privKeys[i], grp.NewInt(1)) } store, err := NewStore(kv, grp, privKeys) @@ -35,8 +42,8 @@ func TestNewStore(t *testing.T) { rq, ok := store.fingerprints[auth.MakeRequestFingerprint(pubKeys[i])] if !ok { t.Errorf("Key not found in map (%d): %s", i, pubKeys[i].Text(16)) - }else if rq.PrivKey.Cmp(key)!=0{ - t.Errorf("Key found in map (%d) does not match private: " + + } else if rq.PrivKey.Cmp(key) != 0 { + t.Errorf("Key found in map (%d) does not match private: "+ "%s vs %s", i, key.Text(10), rq.PrivKey.Text(10)) } } @@ -178,7 +185,7 @@ func TestStore_AddReceived_PartnerAlreadyExistsError(t *testing.T) { func TestStore_GetFingerprint_GeneralFingerprintType(t *testing.T) { s, _, privKeys := makeTestStore(t) - pubkey := s.grp.ExpG(privKeys[0],s.grp.NewInt(1)) + pubkey := s.grp.ExpG(privKeys[0], s.grp.NewInt(1)) fp := auth.MakeRequestFingerprint(pubkey) fpType, request, key, err := s.GetFingerprint(fp) if err != nil { diff --git a/storage/cmix/key.go b/storage/cmix/key.go index f1a61fa55..ae57a4d77 100644 --- a/storage/cmix/key.go +++ b/storage/cmix/key.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package cmix import ( diff --git a/storage/cmix/key_test.go b/storage/cmix/key_test.go index 2dac7c4c9..27e53eaa0 100644 --- a/storage/cmix/key_test.go +++ b/storage/cmix/key_test.go @@ -1,7 +1,8 @@ -//////////////////////////////////////////////////////////////////////////////// -// Copyright © 2020 Privategrity Corporation / -// / -// All rights reserved. / -//////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// package cmix diff --git a/storage/cmix/roundKeys.go b/storage/cmix/roundKeys.go index 2c051b8d6..825c1ccfe 100644 --- a/storage/cmix/roundKeys.go +++ b/storage/cmix/roundKeys.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package cmix import ( diff --git a/storage/cmix/roundKeys_test.go b/storage/cmix/roundKeys_test.go index 441d0f025..433c6ddbd 100644 --- a/storage/cmix/roundKeys_test.go +++ b/storage/cmix/roundKeys_test.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package cmix import ( diff --git a/storage/cmix/store.go b/storage/cmix/store.go index 1a9e35226..a6383c4d9 100644 --- a/storage/cmix/store.go +++ b/storage/cmix/store.go @@ -1,8 +1,9 @@ -//////////////////////////////////////////////////////////////////////////////// -// Copyright © 2020 Privategrity Corporation / -// / -// All rights reserved. / -//////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// package cmix diff --git a/storage/cmix/store_test.go b/storage/cmix/store_test.go index 6c1784a8c..eed3869f0 100644 --- a/storage/cmix/store_test.go +++ b/storage/cmix/store_test.go @@ -1,8 +1,9 @@ -//////////////////////////////////////////////////////////////////////////////// -// Copyright © 2020 Privategrity Corporation / -// / -// All rights reserved. / -//////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// package cmix diff --git a/storage/conversation/partner.go b/storage/conversation/partner.go index e1bd682de..291dcbe78 100644 --- a/storage/conversation/partner.go +++ b/storage/conversation/partner.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package conversation import ( diff --git a/storage/conversation/partner_test.go b/storage/conversation/partner_test.go index caad5518c..1be213ede 100644 --- a/storage/conversation/partner_test.go +++ b/storage/conversation/partner_test.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package conversation import ( diff --git a/storage/conversation/store.go b/storage/conversation/store.go index 9a8201c69..3f39461e8 100644 --- a/storage/conversation/store.go +++ b/storage/conversation/store.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package conversation import ( diff --git a/storage/conversation/store_test.go b/storage/conversation/store_test.go index e391f3949..e88b5bec0 100644 --- a/storage/conversation/store_test.go +++ b/storage/conversation/store_test.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package conversation import ( diff --git a/storage/e2e/context.go b/storage/e2e/context.go index 800c32519..beb7211ed 100644 --- a/storage/e2e/context.go +++ b/storage/e2e/context.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package e2e import ( diff --git a/storage/e2e/fingerprintAccess.go b/storage/e2e/fingerprintAccess.go index a0dde4290..82e130ed4 100644 --- a/storage/e2e/fingerprintAccess.go +++ b/storage/e2e/fingerprintAccess.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package e2e type fingerprintAccess interface { diff --git a/storage/e2e/key.go b/storage/e2e/key.go index ead73ff23..49900a09a 100644 --- a/storage/e2e/key.go +++ b/storage/e2e/key.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package e2e import ( diff --git a/storage/e2e/key_test.go b/storage/e2e/key_test.go index 1794aa2fc..d74f53e17 100644 --- a/storage/e2e/key_test.go +++ b/storage/e2e/key_test.go @@ -1,8 +1,9 @@ -//////////////////////////////////////////////////////////////////////////////// -// Copyright © 2020 Privategrity Corporation / -// / -// All rights reserved. / -//////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// package e2e diff --git a/storage/e2e/manager.go b/storage/e2e/manager.go index 1ee144555..5ca2dd58e 100644 --- a/storage/e2e/manager.go +++ b/storage/e2e/manager.go @@ -1,8 +1,9 @@ -//////////////////////////////////////////////////////////////////////////////// -// Copyright © 2020 Privategrity Corporation / -// / -// All rights reserved. / -//////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// package e2e @@ -54,8 +55,7 @@ func newManager(ctx *context, kv *versioned.KV, partnerID *id.ID, myPrivKey, err) } - if err := utility.StoreCyclicKey(kv, partnerPubKey, originPartnerPubKey); - err != nil { + if err := utility.StoreCyclicKey(kv, partnerPubKey, originPartnerPubKey); err != nil { jww.FATAL.Panicf("Failed to store %s: %+v", originPartnerPubKey, err) } @@ -174,7 +174,6 @@ func (m *Manager) GetSendRelationshipFingerprint() []byte { return m.send.fingerprint } - // GetReceiveSession gets the Receive session of the passed ID. Returns nil if // no session is found. func (m *Manager) GetReceiveSession(sid SessionID) *Session { diff --git a/storage/e2e/manager_test.go b/storage/e2e/manager_test.go index 6471228aa..ad58f483b 100644 --- a/storage/e2e/manager_test.go +++ b/storage/e2e/manager_test.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package e2e import ( diff --git a/storage/e2e/negotiation.go b/storage/e2e/negotiation.go index 2b7b8df99..988bfee4d 100644 --- a/storage/e2e/negotiation.go +++ b/storage/e2e/negotiation.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package e2e import "fmt" diff --git a/storage/e2e/params.go b/storage/e2e/params.go index f9672c636..f06484a3d 100644 --- a/storage/e2e/params.go +++ b/storage/e2e/params.go @@ -1,8 +1,9 @@ -//////////////////////////////////////////////////////////////////////////////// -// Copyright © 2020 Privategrity Corporation / -// / -// All rights reserved. / -//////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// package e2e diff --git a/storage/e2e/params_test.go b/storage/e2e/params_test.go index 616947cf1..bf92604d3 100644 --- a/storage/e2e/params_test.go +++ b/storage/e2e/params_test.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package e2e // Testing file for the params.go functions diff --git a/storage/e2e/relationship.go b/storage/e2e/relationship.go index 111576e42..77effe166 100644 --- a/storage/e2e/relationship.go +++ b/storage/e2e/relationship.go @@ -1,8 +1,9 @@ -//////////////////////////////////////////////////////////////////////////////// -// Copyright © 2020 Privategrity Corporation / -// / -// All rights reserved. / -//////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// package e2e @@ -355,4 +356,3 @@ func (r *relationship) clean() { } } } - diff --git a/storage/e2e/relationshipFingerprint.go b/storage/e2e/relationshipFingerprint.go index 19f01a1d9..5da176299 100644 --- a/storage/e2e/relationshipFingerprint.go +++ b/storage/e2e/relationshipFingerprint.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package e2e import ( diff --git a/storage/e2e/relationshipType.go b/storage/e2e/relationshipType.go index a0542720f..5fb5980f1 100644 --- a/storage/e2e/relationshipType.go +++ b/storage/e2e/relationshipType.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package e2e import ( diff --git a/storage/e2e/relationship_test.go b/storage/e2e/relationship_test.go index aa5af76f8..5c5f26207 100644 --- a/storage/e2e/relationship_test.go +++ b/storage/e2e/relationship_test.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package e2e import ( @@ -221,7 +228,6 @@ func TestRelationship_GetNewestRekeyableSession(t *testing.T) { t.Error("didn't get the expected session") } - // make the very newest session unrekeyable: the previous session //sb.sessions[1].negotiationStatus = Confirmed sb.sessions[0].negotiationStatus = Unconfirmed @@ -498,4 +504,3 @@ func relationshipsEqual(buff *relationship, buff2 *relationship) bool { } return true } - diff --git a/storage/e2e/session.go b/storage/e2e/session.go index 6643d1eb1..bcea1ff78 100644 --- a/storage/e2e/session.go +++ b/storage/e2e/session.go @@ -1,8 +1,9 @@ -//////////////////////////////////////////////////////////////////////////////// -// Copyright © 2020 Privategrity Corporation / -// / -// All rights reserved. / -//////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// package e2e @@ -117,16 +118,16 @@ func newSession(ship *relationship, t RelationshipType, myPrivKey, partnerPubKey session.kv = session.generate(ship.kv) - jww.INFO.Printf("New Session with Partner %s:\n\tType: %s" + - "\n\tBaseKey: %s\n\tRelationship Fingerprint: %v\n\tNumKeys: %d" + + jww.INFO.Printf("New Session with Partner %s:\n\tType: %s"+ + "\n\tBaseKey: %s\n\tRelationship Fingerprint: %v\n\tNumKeys: %d"+ "\n\tMy Private Key: %s\n\tPartner Public Key: %s", ship.manager.partner, t, session.baseKey.TextVerbose(16, 0), session.relationshipFingerprint, session.ttl, - session.myPrivKey.TextVerbose(16,0), - session.partnerPubKey.TextVerbose(16,0)) + session.myPrivKey.TextVerbose(16, 0), + session.partnerPubKey.TextVerbose(16, 0)) err := session.save() if err != nil { diff --git a/storage/e2e/sessionID.go b/storage/e2e/sessionID.go index 85c52a0d2..00b8ebca5 100644 --- a/storage/e2e/sessionID.go +++ b/storage/e2e/sessionID.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package e2e import ( diff --git a/storage/e2e/session_test.go b/storage/e2e/session_test.go index 12b636600..ec3c51bc9 100644 --- a/storage/e2e/session_test.go +++ b/storage/e2e/session_test.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package e2e import ( diff --git a/storage/e2e/stateVector.go b/storage/e2e/stateVector.go index 8329ce6e6..d72d5c28f 100644 --- a/storage/e2e/stateVector.go +++ b/storage/e2e/stateVector.go @@ -1,8 +1,9 @@ -//////////////////////////////////////////////////////////////////////////////// -// Copyright © 2020 Privategrity Corporation / -// / -// All rights reserved. / -//////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// package e2e diff --git a/storage/e2e/stateVector_test.go b/storage/e2e/stateVector_test.go index 12da87945..99fd5cf60 100644 --- a/storage/e2e/stateVector_test.go +++ b/storage/e2e/stateVector_test.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package e2e import ( diff --git a/storage/e2e/status.go b/storage/e2e/status.go index 6e65a004a..63633724d 100644 --- a/storage/e2e/status.go +++ b/storage/e2e/status.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package e2e import "fmt" diff --git a/storage/e2e/status_test.go b/storage/e2e/status_test.go index c7475900f..a81894bae 100644 --- a/storage/e2e/status_test.go +++ b/storage/e2e/status_test.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package e2e // Testing file for the status.go functions diff --git a/storage/e2e/store.go b/storage/e2e/store.go index 3eb69bcaf..03d0abac1 100644 --- a/storage/e2e/store.go +++ b/storage/e2e/store.go @@ -1,8 +1,9 @@ -//////////////////////////////////////////////////////////////////////////////// -// Copyright © 2020 Privategrity Corporation / -// / -// All rights reserved. / -//////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// package e2e @@ -32,7 +33,6 @@ const ( var NoPartnerErrorStr = "No relationship with partner found" - type Store struct { managers map[id.ID]*Manager mux sync.RWMutex @@ -158,7 +158,7 @@ func (s *Store) AddPartner(partnerID *id.ID, partnerPubKey, myPrivKey *cyclic.In s.mux.Lock() defer s.mux.Unlock() - jww.INFO.Printf("Adding Partner %s:\n\tMy Private Key: %s" + + jww.INFO.Printf("Adding Partner %s:\n\tMy Private Key: %s"+ "\n\tPartner Public Key: %s", partnerID, myPrivKey.TextVerbose(16, 0), diff --git a/storage/e2e/store_test.go b/storage/e2e/store_test.go index 300fac37f..fccb11fe3 100644 --- a/storage/e2e/store_test.go +++ b/storage/e2e/store_test.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package e2e import ( diff --git a/storage/messages.go b/storage/messages.go index f5b6e43a8..31f518fbd 100644 --- a/storage/messages.go +++ b/storage/messages.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package storage const ( diff --git a/storage/ndf.go b/storage/ndf.go index f92336de5..14cb4147b 100644 --- a/storage/ndf.go +++ b/storage/ndf.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package storage import ( diff --git a/storage/partition/multiPartMessage.go b/storage/partition/multiPartMessage.go index b43f0d399..9aa583c7a 100644 --- a/storage/partition/multiPartMessage.go +++ b/storage/partition/multiPartMessage.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package partition import ( @@ -187,7 +194,6 @@ func (mpm *multiPartMessage) IsComplete(relationshipFingerprint []byte) (message mid = e2e.NewMessageID(relationshipFingerprint, mpm.MessageID) } - // Return the message m := message.Receive{ Payload: reconstructed, diff --git a/storage/partition/multiPartMessage_test.go b/storage/partition/multiPartMessage_test.go index 35e5b0277..103351af6 100644 --- a/storage/partition/multiPartMessage_test.go +++ b/storage/partition/multiPartMessage_test.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package partition import ( diff --git a/storage/partition/part.go b/storage/partition/part.go index c38ca4597..307dbfb40 100644 --- a/storage/partition/part.go +++ b/storage/partition/part.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package partition import ( diff --git a/storage/partition/part_test.go b/storage/partition/part_test.go index a7929e61b..f9298ca92 100644 --- a/storage/partition/part_test.go +++ b/storage/partition/part_test.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package partition import ( diff --git a/storage/partition/store.go b/storage/partition/store.go index 46b262290..de6016938 100644 --- a/storage/partition/store.go +++ b/storage/partition/store.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package partition import ( diff --git a/storage/partition/store_test.go b/storage/partition/store_test.go index 251b64702..c150d026d 100644 --- a/storage/partition/store_test.go +++ b/storage/partition/store_test.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package partition import ( diff --git a/storage/regCode.go b/storage/regCode.go index 80c36676e..8e9533395 100644 --- a/storage/regCode.go +++ b/storage/regCode.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package storage import ( @@ -17,7 +24,7 @@ func (s *Session) SetRegCode(regCode string) { Version: regCodeVersion, Data: []byte(regCode), Timestamp: time.Now(), - }); err!=nil{ + }); err != nil { jww.FATAL.Panicf("Failed to set the registration code: %s", err) } } diff --git a/storage/regStatus.go b/storage/regStatus.go index 2df2672ca..52f74dd10 100644 --- a/storage/regStatus.go +++ b/storage/regStatus.go @@ -1,8 +1,9 @@ -//////////////////////////////////////////////////////////////////////////////// -// Copyright © 2020 Privategrity Corporation / -// / -// All rights reserved. / -//////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// package storage diff --git a/storage/session.go b/storage/session.go index 25145a2a5..771def537 100644 --- a/storage/session.go +++ b/storage/session.go @@ -1,8 +1,9 @@ -//////////////////////////////////////////////////////////////////////////////// -// Copyright © 2020 Privategrity Corporation / -// / -// All rights reserved. / -//////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// // Session object definition diff --git a/storage/session_test.go b/storage/session_test.go index efdce6e08..7b0d5ebc7 100644 --- a/storage/session_test.go +++ b/storage/session_test.go @@ -1,8 +1,9 @@ -//////////////////////////////////////////////////////////////////////////////// -// Copyright © 2020 Privategrity Corporation / -// / -// All rights reserved. / -//////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// package storage diff --git a/storage/user.go b/storage/user.go index a4fb8742b..b6003cdba 100644 --- a/storage/user.go +++ b/storage/user.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package storage import "gitlab.com/elixxir/client/interfaces/user" diff --git a/storage/user/cryptographic.go b/storage/user/cryptographic.go index 9a78f4ef6..2790d4d72 100644 --- a/storage/user/cryptographic.go +++ b/storage/user/cryptographic.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package user import ( diff --git a/storage/user/cryptographic_test.go b/storage/user/cryptographic_test.go index 71c2dff95..19c9034cd 100644 --- a/storage/user/cryptographic_test.go +++ b/storage/user/cryptographic_test.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package user import ( diff --git a/storage/user/regValidationSig.go b/storage/user/regValidationSig.go index fe1891981..e70b636d2 100644 --- a/storage/user/regValidationSig.go +++ b/storage/user/regValidationSig.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package user import ( diff --git a/storage/user/regValidationSig_test.go b/storage/user/regValidationSig_test.go index d2c3f758e..09c73fdd9 100644 --- a/storage/user/regValidationSig_test.go +++ b/storage/user/regValidationSig_test.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package user import ( diff --git a/storage/user/user.go b/storage/user/user.go index 8e62c933c..e79928d93 100644 --- a/storage/user/user.go +++ b/storage/user/user.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package user import ( @@ -45,4 +52,4 @@ func LoadUser(kv *versioned.KV) (*User, error) { func (u *User) GetCryptographicIdentity() *CryptographicIdentity { return u.ci -} \ No newline at end of file +} diff --git a/storage/user/user_test.go b/storage/user/user_test.go index eab18d6f4..0473138dc 100644 --- a/storage/user/user_test.go +++ b/storage/user/user_test.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package user import ( diff --git a/storage/user/username.go b/storage/user/username.go index 9127eae18..3e6862c39 100644 --- a/storage/user/username.go +++ b/storage/user/username.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package user import ( diff --git a/storage/user/username_test.go b/storage/user/username_test.go index 21a720593..db2f399c3 100644 --- a/storage/user/username_test.go +++ b/storage/user/username_test.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package user import ( diff --git a/storage/utility/NDF.go b/storage/utility/NDF.go index be827bee8..5222b4526 100644 --- a/storage/utility/NDF.go +++ b/storage/utility/NDF.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package utility import ( diff --git a/storage/utility/cmixMessageBuffer.go b/storage/utility/cmixMessageBuffer.go index ca93a1184..d3c5f5ce9 100644 --- a/storage/utility/cmixMessageBuffer.go +++ b/storage/utility/cmixMessageBuffer.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package utility import ( diff --git a/storage/utility/cmixMessageBuffer_test.go b/storage/utility/cmixMessageBuffer_test.go index fff9ed7c3..c5f544edf 100644 --- a/storage/utility/cmixMessageBuffer_test.go +++ b/storage/utility/cmixMessageBuffer_test.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package utility import ( diff --git a/storage/utility/contact.go b/storage/utility/contact.go index 70fa9d23c..57e987c29 100644 --- a/storage/utility/contact.go +++ b/storage/utility/contact.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package utility import ( diff --git a/storage/utility/dh.go b/storage/utility/dh.go index 0a892020c..2a840489d 100644 --- a/storage/utility/dh.go +++ b/storage/utility/dh.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package utility import ( diff --git a/storage/utility/dh_test.go b/storage/utility/dh_test.go index c6b02c1d6..4d4a31941 100644 --- a/storage/utility/dh_test.go +++ b/storage/utility/dh_test.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package utility import ( diff --git a/storage/utility/e2eMessageBuffer.go b/storage/utility/e2eMessageBuffer.go index 2600016e8..28537e098 100644 --- a/storage/utility/e2eMessageBuffer.go +++ b/storage/utility/e2eMessageBuffer.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package utility import ( diff --git a/storage/utility/e2eMessageBuffer_test.go b/storage/utility/e2eMessageBuffer_test.go index c5bc81013..7232ca0a1 100644 --- a/storage/utility/e2eMessageBuffer_test.go +++ b/storage/utility/e2eMessageBuffer_test.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package utility import ( diff --git a/storage/utility/group.go b/storage/utility/group.go index 60cce1831..fbe18db68 100644 --- a/storage/utility/group.go +++ b/storage/utility/group.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package utility import ( diff --git a/storage/utility/group_test.go b/storage/utility/group_test.go index eb6e64bd9..ef8ed3ea2 100644 --- a/storage/utility/group_test.go +++ b/storage/utility/group_test.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package utility import ( diff --git a/storage/utility/knownRounds.go b/storage/utility/knownRounds.go index 472206074..767ad917c 100644 --- a/storage/utility/knownRounds.go +++ b/storage/utility/knownRounds.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package utility import ( diff --git a/storage/utility/knownRounds_test.go b/storage/utility/knownRounds_test.go index 624079da5..73f0cb5a3 100644 --- a/storage/utility/knownRounds_test.go +++ b/storage/utility/knownRounds_test.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package utility import ( diff --git a/storage/utility/messageBuffer.go b/storage/utility/messageBuffer.go index b6bcde652..5464881ca 100644 --- a/storage/utility/messageBuffer.go +++ b/storage/utility/messageBuffer.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package utility import ( diff --git a/storage/utility/messageBuffer_test.go b/storage/utility/messageBuffer_test.go index 212c16ad4..6aff00a4c 100644 --- a/storage/utility/messageBuffer_test.go +++ b/storage/utility/messageBuffer_test.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package utility import ( diff --git a/storage/utility/meteredCmixMessageBuffer.go b/storage/utility/meteredCmixMessageBuffer.go index 2ccf9c111..584f6e225 100644 --- a/storage/utility/meteredCmixMessageBuffer.go +++ b/storage/utility/meteredCmixMessageBuffer.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package utility import ( diff --git a/storage/utility/meteredCmixMessageBuffer_test.go b/storage/utility/meteredCmixMessageBuffer_test.go index 9266b0cd7..d21f3ca6d 100644 --- a/storage/utility/meteredCmixMessageBuffer_test.go +++ b/storage/utility/meteredCmixMessageBuffer_test.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package utility import ( diff --git a/storage/versioned/kv.go b/storage/versioned/kv.go index 1fd48d13e..f9391b7a4 100644 --- a/storage/versioned/kv.go +++ b/storage/versioned/kv.go @@ -1,8 +1,9 @@ -//////////////////////////////////////////////////////////////////////////////// -// Copyright © 2020 Privategrity Corporation / -// / -// All rights reserved. / -//////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// package versioned diff --git a/storage/versioned/kv_test.go b/storage/versioned/kv_test.go index 096a50ad1..db8d691d8 100644 --- a/storage/versioned/kv_test.go +++ b/storage/versioned/kv_test.go @@ -1,8 +1,9 @@ -//////////////////////////////////////////////////////////////////////////////// -// Copyright © 2020 Privategrity Corporation / -// / -// All rights reserved. / -//////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// package versioned diff --git a/storage/versioned/object.go b/storage/versioned/object.go index 36bc545dc..8cdec88c2 100644 --- a/storage/versioned/object.go +++ b/storage/versioned/object.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package versioned import ( diff --git a/storage/versioned/object_test.go b/storage/versioned/object_test.go index 0a3234afc..4ba12575a 100644 --- a/storage/versioned/object_test.go +++ b/storage/versioned/object_test.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package versioned import ( diff --git a/switchboard/any.go b/switchboard/any.go index b460ecac0..885320081 100644 --- a/switchboard/any.go +++ b/switchboard/any.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package switchboard import ( diff --git a/switchboard/any_test.go b/switchboard/any_test.go index 1f31bccd8..557faa519 100644 --- a/switchboard/any_test.go +++ b/switchboard/any_test.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package switchboard import ( diff --git a/switchboard/byID.go b/switchboard/byID.go index ad7197452..9048f527c 100644 --- a/switchboard/byID.go +++ b/switchboard/byID.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package switchboard import ( diff --git a/switchboard/byID_test.go b/switchboard/byID_test.go index 683a68f0a..52c294b7c 100644 --- a/switchboard/byID_test.go +++ b/switchboard/byID_test.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package switchboard import ( diff --git a/switchboard/byType.go b/switchboard/byType.go index 7bf703d75..ccf0c8c73 100644 --- a/switchboard/byType.go +++ b/switchboard/byType.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package switchboard import ( diff --git a/switchboard/byType_test.go b/switchboard/byType_test.go index 2570f6a33..9abc45d24 100644 --- a/switchboard/byType_test.go +++ b/switchboard/byType_test.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package switchboard import ( diff --git a/switchboard/listener.go b/switchboard/listener.go index 8bc313f51..630ddc150 100644 --- a/switchboard/listener.go +++ b/switchboard/listener.go @@ -1,8 +1,9 @@ -//////////////////////////////////////////////////////////////////////////////////////////// -// Copyright © 2020 xx network SEZC // -// // -// Use of this source code is governed by a license that can be found in the LICENSE file // -//////////////////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// package switchboard diff --git a/switchboard/listener_test.go b/switchboard/listener_test.go index 11ea51599..7541072b6 100644 --- a/switchboard/listener_test.go +++ b/switchboard/listener_test.go @@ -1,8 +1,9 @@ -//////////////////////////////////////////////////////////////////////////////////////////// -// Copyright © 2020 xx network SEZC // -// // -// Use of this source code is governed by a license that can be found in the LICENSE file // -//////////////////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// package switchboard diff --git a/switchboard/switchboard.go b/switchboard/switchboard.go index 2c4eb69ce..21695f10c 100644 --- a/switchboard/switchboard.go +++ b/switchboard/switchboard.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package switchboard import ( diff --git a/switchboard/switchboard_test.go b/switchboard/switchboard_test.go index 5c097cdfa..2a726c73c 100644 --- a/switchboard/switchboard_test.go +++ b/switchboard/switchboard_test.go @@ -1,3 +1,10 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + package switchboard import ( diff --git a/ud/udMessages.proto b/ud/udMessages.proto index e441ad618..efdb707d9 100644 --- a/ud/udMessages.proto +++ b/ud/udMessages.proto @@ -1,8 +1,9 @@ -//////////////////////////////////////////////////////////////////////////////// -// Copyright © 2018 Privategrity Corporation / -// / -// All rights reserved. / -//////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2020 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// // Call ./generate.sh to generate the protocol buffer code -- GitLab