status-go/account/accounts_nimbus.go

30 lines
591 B
Go

// +build nimbus
package account
import (
"github.com/status-im/status-go/account/generator"
)
// 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()
var err error
m.keystore, err = makeKeyStore(keydir)
return err
}