This repository has been archived by the owner on Apr 15, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 68
IdentityManager - Identity factory with multiple devices and singleton controller support #17
Merged
Merged
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
5dfc653
IdentitManager which creates identities and acts as a controller
pelle 32380cd
Adding of multiple devices as well as a change by recoveryKey
pelle f4ec8d6
tests for removal of owners
pelle 048611e
tests for changeRecovery
pelle 4a6da21
only allow owners who have been around for more than a day to modify …
pelle d289ce1
Reorganizing stuff based on latest changes in repo
pelle 9d4fb31
added a general purpose rate limiter
pelle b5f1771
add a rate limiter to IdentityManager
pelle 09ab55c
Also limit owners added by owners
pelle 875ed99
Add registerIdentity function for registering an existing proxy
pelle ce9ae06
beginning of reorganizing tests
pelle 03a40ff
set explicit 0.4.8 pragma
pelle 03a546d
Configurable time locks
pelle 9f8767e
Pushing refactored tests. Still failing.
pelle 61097de
Fix time lock calculations and rate limiter
pelle eca4abc
Add remaining tests
pelle 3ef76aa
Add function to migrate IdentityManager.
coder5876 e581692
Migration: added events, fixed bug, and cleaned up
naterush fd749c0
Migration Tests
naterush 4f84f01
Stopped recoveryKey from ever equaling zero.
naterush 5346800
Small cleanup
oed e2e6420
Merge branch 'develop' into feature/identity-manager
oed b266633
Tests foro IdentityManager now uses async await
oed 8b4d35a
Use assert.match for errors
oed 91fb8bf
Zero address check on initiateMigration
oed 5dd749a
Updated contract docstrings
oed e8cc4e0
Moved address check to modifier
oed 44a7778
Owner added by owner can now transact directly after being added
oed d3dab73
IdentityManager now has isOwner and isRecovery functions
oed 200c794
Some small fixes
oed f762602
minor change to isOwner
naterush 2f96523
Deployed IdentityFactory on Kovan+Rinkeby
coder5876 4bbf91e
Updated truffle version
coder5876 0c5d59b
update circle.yml in the right branch
e528dd3
Update tests for updated truffle.
coder5876 f5ff249
Merge branch 'develop' into feature/identity-manager
pelle File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -133,6 +133,7 @@ contract IdentityManager { | |
|
||
// an owner can migrate away to a new IdentityManager | ||
function initiateMigration(Proxy identity, address newIdManager) onlyOlderOwner(identity) { | ||
if (newIdManager == address(0)) throw; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @oed could use the validAddress modifier here also. |
||
migrationInitiated[identity] = now; | ||
migrationNewAddress[identity] = newIdManager; | ||
MigrationInitiated(identity, newIdManager, msg.sender); | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@oed Based on the other changes checking for null recovery keys, we should do the same here. Basically if newIdManager is null it should fail.