mirror of
https://github.com/anyproto/any-sync.git
synced 2025-06-08 05:57:03 +09:00
More key changes
This commit is contained in:
parent
c00ea331dc
commit
3778465e3b
29 changed files with 229 additions and 1046 deletions
|
@ -13,7 +13,7 @@ import (
|
|||
|
||||
// AccountTestService provides service for test purposes, generates new random account every Init
|
||||
type AccountTestService struct {
|
||||
acc *accountdata.AccountData
|
||||
acc *accountdata.AccountKeys
|
||||
}
|
||||
|
||||
func (s *AccountTestService) Init(a *app.App) (err error) {
|
||||
|
@ -43,7 +43,7 @@ func (s *AccountTestService) Init(a *app.App) (err error) {
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
s.acc = &accountdata.AccountData{
|
||||
s.acc = &accountdata.AccountKeys{
|
||||
Identity: ident,
|
||||
PeerKey: peerKey,
|
||||
SignKey: signKey,
|
||||
|
@ -57,7 +57,7 @@ func (s *AccountTestService) Name() (name string) {
|
|||
return accountService.CName
|
||||
}
|
||||
|
||||
func (s *AccountTestService) Account() *accountdata.AccountData {
|
||||
func (s *AccountTestService) Account() *accountdata.AccountKeys {
|
||||
return s.acc
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue