status-go/account/accounts_nimbus.go

30 lines
591 B
Go
Raw Normal View History

// +build nimbus
package account
import (
"github.com/status-im/status-go/account/generator"
)
2019-11-27 12:22:23 +00:00
// NimbusManager represents account manager interface.
type NimbusManager struct {
*Manager
}
// NewNimbusManager returns new node account manager.
func NewNimbusManager() *NimbusManager {
m := &NimbusManager{}
m.Manager = &Manager{accountsGenerator: generator.New(m)}
return m
}
// InitKeystore sets key manager and key store.
func (m *Manager) InitKeystore(keydir string) error {
m.mu.Lock()
defer m.mu.Unlock()
2020-01-06 09:30:35 +00:00
var err error
m.keystore, err = makeKeyStore(keydir)
return err
}