blob: a132be65da4d4ecbc10d5b480acd0d38b4287f50 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
package store
import (
"go.mau.fi/libsignal/state/record"
)
// PreKey store is an interface describing the local storage
// of PreKeyRecords
type PreKey interface {
// Load a local PreKeyRecord
LoadPreKey(preKeyID uint32) *record.PreKey
// Store a local PreKeyRecord
StorePreKey(preKeyID uint32, preKeyRecord *record.PreKey)
// Check to see if the store contains a PreKeyRecord
ContainsPreKey(preKeyID uint32) bool
// Delete a PreKeyRecord from local storage.
RemovePreKey(preKeyID uint32)
}
|