mirror of
https://github.com/anyproto/any-sync.git
synced 2025-06-08 05:57:03 +09:00
wip: secureservice with verifiers
This commit is contained in:
parent
d91d0941f6
commit
d30d79a110
8 changed files with 264 additions and 9 deletions
|
@ -34,15 +34,21 @@ func (s *AccountTestService) Init(a *app.App) (err error) {
|
|||
return
|
||||
}
|
||||
|
||||
peerId, err := peer.IdFromSigningPubKey(signKey.GetPublic())
|
||||
peerKey, _, err := signingkey.GenerateRandomEd25519KeyPair()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
peerId, err := peer.IdFromSigningPubKey(peerKey.GetPublic())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
s.acc = &accountdata.AccountData{
|
||||
PeerId: peerId.String(),
|
||||
Identity: ident,
|
||||
PeerKey: peerKey,
|
||||
SignKey: signKey,
|
||||
EncKey: encKey,
|
||||
PeerId: peerId.String(),
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue