GNServer 0.0.0.0.34__tar.gz → 0.0.0.0.35__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -76,15 +76,15 @@ class GNExceptions:
76
76
 
77
77
 
78
78
  from KeyisBTools import TTLDict
79
- from KeyisBTools.cryptography.sign import S1
80
- from KeyisBTools.cryptography import m1, hash
79
+ from KeyisBTools.cryptography.sign import s2
80
+ from KeyisBTools.cryptography import m1
81
+ from KeyisBTools.cryptography.bytes import hash
81
82
  from KeyisBTools.models.serialization import serialize, deserialize
82
83
  from gnobjects.net.objects import GNRequest, GNResponse, Url
83
84
 
84
85
  from ._crt import crt_client
85
86
 
86
87
 
87
- s1 = S1()
88
88
 
89
89
 
90
90
  async def chain_async(first_item, rest: AsyncIterable) -> AsyncGenerator:
@@ -124,6 +124,9 @@ class AsyncClient:
124
124
  resuilt = self._dns_cache.get(domain)
125
125
  if resuilt is not None:
126
126
  return resuilt
127
+
128
+ if domain == 'api.dns.core':
129
+ return self.__dns_core__ipv4
127
130
 
128
131
  if ':' in domain and domain.split('.')[-1].split(':')[0].isdigit() and domain.split(':')[-1].isdigit():
129
132
  return domain
@@ -133,7 +136,7 @@ class AsyncClient:
133
136
  self.__dns_client = AsyncClient()
134
137
 
135
138
  if self.__server_key is not None:
136
- s = s1.sign(self.__server_key)
139
+ s = s2.sign(self.__server_key)
137
140
  data = m1.encrypt(s, domain.encode(), serialize({'domain': domain}), hash(self.__server_key))
138
141
  payload = {'sign': {'alg': 'KeyisB-c-s-m1', 'data': s}, 'data': data}
139
142
  else:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: GNServer
3
- Version: 0.0.0.0.34
3
+ Version: 0.0.0.0.35
4
4
  Summary: GNServer
5
5
  Home-page: https://github.com/KeyisB/libs/tree/main/GNServer
6
6
  Author: KeyisB
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: GNServer
3
- Version: 0.0.0.0.34
3
+ Version: 0.0.0.0.35
4
4
  Summary: GNServer
5
5
  Home-page: https://github.com/KeyisB/libs/tree/main/GNServer
6
6
  Author: KeyisB
@@ -5,7 +5,7 @@ filesName = 'GNServer'
5
5
 
6
6
  setup(
7
7
  name=name,
8
- version='0.0.0.0.34',
8
+ version='0.0.0.0.35',
9
9
  author="KeyisB",
10
10
  author_email="keyisb.pip@gmail.com",
11
11
  description=name,
File without changes
File without changes
File without changes