5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2024-11-24 19:01:55 +00:00
matterbridge/vendor/go.mau.fi/libsignal/state/store/MessageKeyStore.go
2022-03-20 14:57:48 +01:00

22 lines
527 B
Go

package store
import (
"go.mau.fi/libsignal/keys/message"
)
// MessageKey store is an interface describing the optional local storage
// of message keys.
type MessageKey interface {
// Load a local message key by id
LoadMessageKey(keyID uint32) *message.Keys
// Store a local message key
StoreMessageKey(keyID uint32, key *message.Keys)
// Check to see if the store contains a message key with id.
ContainsMessageKey(keyID uint32) bool
// Delete a message key from local storage.
RemoveMessageKey(keyID uint32)
}