forked from Ikalus1988/MisakaNet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__init__.py
More file actions
40 lines (38 loc) 路 891 Bytes
/
Copy path__init__.py
File metadata and controls
40 lines (38 loc) 路 891 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
"""Federation module for cross-repo lesson sync."""
from .registry import FederationRegistry, PeerNode
from .sync_protocol import FederationSync, LessonManifest, SyncResult
from .hmac_auth import (
sign_request,
verify_request,
build_auth_headers,
extract_auth_headers,
HEADER_SIGNATURE,
HEADER_TIMESTAMP,
HEADER_KEY_VERSION,
)
from .secrets import (
generate_shared_secret,
get_shared_secret,
get_key_version,
revoke_secret,
)
__all__ = [
"FederationRegistry",
"PeerNode",
"FederationSync",
"LessonManifest",
"SyncResult",
# HMAC auth
"sign_request",
"verify_request",
"build_auth_headers",
"extract_auth_headers",
"HEADER_SIGNATURE",
"HEADER_TIMESTAMP",
"HEADER_KEY_VERSION",
# Secrets
"generate_shared_secret",
"get_shared_secret",
"get_key_version",
"revoke_secret",
]