blob: 058cd67065bfa3bc2e6db043c0ed40ecec062f32 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
package store
import (
"go.mau.fi/libsignal/state/record"
)
// SignedPreKey store is an interface that describes how to persistently
// store signed PreKeys.
type SignedPreKey interface {
// LoadSignedPreKey loads a local SignedPreKeyRecord
LoadSignedPreKey(signedPreKeyID uint32) *record.SignedPreKey
// LoadSignedPreKeys loads all local SignedPreKeyRecords
LoadSignedPreKeys() []*record.SignedPreKey
// Store a local SignedPreKeyRecord
StoreSignedPreKey(signedPreKeyID uint32, record *record.SignedPreKey)
// Check to see if store contains the given record
ContainsSignedPreKey(signedPreKeyID uint32) bool
// Delete a SignedPreKeyRecord from local storage
RemoveSignedPreKey(signedPreKeyID uint32)
}
|