Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶ added in v0.45.0
func New(s *ecdsa.PrivateKey, net netmap.State, ks KeyStorage) protosession.SessionServiceServer
New provides protosession.SessionServiceServer based on specified KeyStorage.
All response messages are signed using specified signer and have current epoch in the meta header.
Types ¶
type KeyStorage ¶ added in v0.45.0
type KeyStorage interface {
// Store saves given private key by specified user and locally unique IDs along
// with its expiration time.
Store(key ecdsa.PrivateKey, _ user.ID, id []byte, exp uint64) error
}
KeyStorage represents private keys stored on the local node side.
Click to show internal directories.
Click to hide internal directories.