5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2024-11-25 18:01:34 +00:00
matterbridge/vendor/go.mau.fi/libsignal/state/store/MessageKeyStore.go

22 lines
527 B
Go
Raw Normal View History

2022-01-30 23:27:37 +00:00
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)
}