Add accounts package and refactor key stores
* Add initial UserAccount and AccountManager structs * Add NewAccount, Sign and Accounts functions * Refactor key stores to use key address as main identifier while keeping the UUID. * Use key address as file/dir names instead of UUID
Showing
- accounts/account_manager.go 99 additions, 0 deletionsaccounts/account_manager.go
- accounts/accounts_test.go 19 additions, 0 deletionsaccounts/accounts_test.go
- crypto/crypto.go 8 additions, 2 deletionscrypto/crypto.go
- crypto/key.go 13 additions, 12 deletionscrypto/key.go
- crypto/key_store_passphrase.go 23 additions, 17 deletionscrypto/key_store_passphrase.go
- crypto/key_store_plain.go 34 additions, 15 deletionscrypto/key_store_plain.go
- crypto/key_store_test.go 9 additions, 9 deletionscrypto/key_store_test.go
Loading
Please register or sign in to comment