func (s Store) Marshal() ([]byte, error) {
	js := jsonStore{
		Mnemonic: s.mnemonic.String(),
		Keys:     s.keys,
		Version:  s.version,
	}
	return json.Marshal(js)
}
Return the plain keys store
package keyStore
import (
	"encoding/json"
	"errors"
	"reflect"
	migration "github.com/Bit-Nation/panthalassa/keyStore/migration"
	chatMigration "github.com/Bit-Nation/panthalassa/keyStore/migration/chat"
	encryptionKeyMigr "github.com/Bit-Nation/panthalassa/keyStore/migration/encryption_key"
	ethereumMigration "github.com/Bit-Nation/panthalassa/keyStore/migration/ethereum"
	ed25519Migration "github.com/Bit-Nation/panthalassa/keyStore/migration/identity/ed25519"
	mnemonic "github.com/Bit-Nation/panthalassa/mnemonic"
)
var migrations = []migration.Migration{
	ethereumMigration.Migration{},
	ed25519Migration.Migration{},
	chatMigration.Migration{},
	encryptionKeyMigr.Migration{},
}
type Store struct {
	mnemonic mnemonic.Mnemonic
	keys     map[string]string
	version  uint8
	changed  bool
}
type jsonStore struct {
	Mnemonic string            `json:"mnemonic"`
	Keys     map[string]string `json:"keys"`
	Version  uint8             `json:"version"`
}