aboutsummaryrefslogtreecommitdiffstats
path: root/entities/identity
diff options
context:
space:
mode:
Diffstat (limited to 'entities/identity')
-rw-r--r--entities/identity/identity.go6
-rw-r--r--entities/identity/version.go6
2 files changed, 6 insertions, 6 deletions
diff --git a/entities/identity/identity.go b/entities/identity/identity.go
index b0cee43b..22ce652c 100644
--- a/entities/identity/identity.go
+++ b/entities/identity/identity.go
@@ -383,9 +383,9 @@ func (i *Identity) NeedCommit() bool {
// cleaning would be required.
//
// An alternative approach would be to have a determinist rebase:
-// - any commits present in both local and remote version would be kept, never changed.
-// - newer commits would be merged in a linear chain of commits, ordered based on the
-// Lamport time
+// - any commits present in both local and remote version would be kept, never changed.
+// - newer commits would be merged in a linear chain of commits, ordered based on the
+// Lamport time
//
// However, this approach leave the possibility, in the case of a compromised crypto keys,
// of forging a new version with a bogus Lamport time to be inserted before a legit version,
diff --git a/entities/identity/version.go b/entities/identity/version.go
index 9a52d089..fe1565cf 100644
--- a/entities/identity/version.go
+++ b/entities/identity/version.go
@@ -15,8 +15,8 @@ import (
)
// 1: original format
-// 2: Identity Ids are generated from the first version serialized data instead of from the first git commit
-// + Identity hold multiple lamport clocks from other entities, instead of just bug edit
+// 2: Identity Ids are generated from the first version serialized data instead of from the first git
+// commit + Identity hold multiple lamport clocks from other entities, instead of just bug edit
const formatVersion = 2
// version is a complete set of information about an Identity at a point in time.
@@ -31,7 +31,7 @@ type version struct {
unixTime int64
// The set of keys valid at that time, from this version onward, until they get removed
- // in a new version. This allow to have multiple key for the same identity (e.g. one per
+ // in a new version. This allows to have multiple key for the same identity (e.g. one per
// device) as well as revoke key.
keys []*Key