Skip to content

Commit 3e50c25

Browse files
committed
v1.0.2
1 parent aecdec0 commit 3e50c25

9 files changed

+9
-9
lines changed

lighter/signer_client.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def __get_shared_library():
8585

8686

8787
def __populate_shared_library_functions(signer):
88-
signer.GenerateAPIKey.argtypes = [ctypes.c_char_p]
88+
signer.GenerateAPIKey.argtypes = []
8989
signer.GenerateAPIKey.restype = ApiKeyResponse
9090

9191
signer.CreateClient.argtypes = [ctypes.c_char_p, ctypes.c_char_p, ctypes.c_int, ctypes.c_int, ctypes.c_longlong]
@@ -159,8 +159,8 @@ def get_signer():
159159
return __signer
160160

161161

162-
def create_api_key(seed=""):
163-
result = get_signer().GenerateAPIKey(ctypes.c_char_p(seed.encode("utf-8")))
162+
def create_api_key():
163+
result = get_signer().GenerateAPIKey()
164164

165165
private_key_str = result.privateKey.decode("utf-8") if result.privateKey else None
166166
public_key_str = result.publicKey.decode("utf-8") if result.publicKey else None
@@ -359,8 +359,8 @@ def check_client(self):
359359
return None
360360

361361
@staticmethod
362-
def create_api_key(self, seed=""):
363-
return create_api_key(seed=seed)
362+
def create_api_key(self):
363+
return create_api_key()
364364

365365
def get_api_key_nonce(self, api_key_index: int, nonce: int) -> Tuple[int, int]:
366366
if api_key_index != self.DEFAULT_API_KEY_INDEX and nonce != self.DEFAULT_NONCE:
0 Bytes
Binary file not shown.

lighter/signers/lighter-signer-darwin-arm64.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ typedef struct { void *data; GoInt len; GoInt cap; } GoSlice;
111111
extern "C" {
112112
#endif
113113

114-
extern ApiKeyResponse GenerateAPIKey(char* cSeed);
114+
extern ApiKeyResponse GenerateAPIKey();
115115
extern char* CreateClient(char* cUrl, char* cPrivateKey, int cChainId, int cApiKeyIndex, long long cAccountIndex);
116116
extern char* CheckClient(int cApiKeyIndex, long long cAccountIndex);
117117
extern SignedTxResponse SignChangePubKey(char* cPubKey, long long cNonce, int cApiKeyIndex, long long cAccountIndex);

lighter/signers/lighter-signer-linux-amd64.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ typedef struct { void *data; GoInt len; GoInt cap; } GoSlice;
111111
extern "C" {
112112
#endif
113113

114-
extern ApiKeyResponse GenerateAPIKey(char* cSeed);
114+
extern ApiKeyResponse GenerateAPIKey();
115115
extern char* CreateClient(char* cUrl, char* cPrivateKey, int cChainId, int cApiKeyIndex, long long int cAccountIndex);
116116
extern char* CheckClient(int cApiKeyIndex, long long int cAccountIndex);
117117
extern SignedTxResponse SignChangePubKey(char* cPubKey, long long int cNonce, int cApiKeyIndex, long long int cAccountIndex);
-344 Bytes
Binary file not shown.

lighter/signers/lighter-signer-linux-arm64.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ typedef struct { void *data; GoInt len; GoInt cap; } GoSlice;
111111
extern "C" {
112112
#endif
113113

114-
extern ApiKeyResponse GenerateAPIKey(char* cSeed);
114+
extern ApiKeyResponse GenerateAPIKey();
115115
extern char* CreateClient(char* cUrl, char* cPrivateKey, int cChainId, int cApiKeyIndex, long long int cAccountIndex);
116116
extern char* CheckClient(int cApiKeyIndex, long long int cAccountIndex);
117117
extern SignedTxResponse SignChangePubKey(char* cPubKey, long long int cNonce, int cApiKeyIndex, long long int cAccountIndex);
-368 Bytes
Binary file not shown.
-1 KB
Binary file not shown.

lighter/signers/lighter-signer-windows-amd64.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ typedef struct { void *data; GoInt len; GoInt cap; } GoSlice;
111111
extern "C" {
112112
#endif
113113

114-
extern __declspec(dllexport) ApiKeyResponse GenerateAPIKey(char* cSeed);
114+
extern __declspec(dllexport) ApiKeyResponse GenerateAPIKey();
115115
extern __declspec(dllexport) char* CreateClient(char* cUrl, char* cPrivateKey, int cChainId, int cApiKeyIndex, long long int cAccountIndex);
116116
extern __declspec(dllexport) char* CheckClient(int cApiKeyIndex, long long int cAccountIndex);
117117
extern __declspec(dllexport) SignedTxResponse SignChangePubKey(char* cPubKey, long long int cNonce, int cApiKeyIndex, long long int cAccountIndex);

0 commit comments

Comments
 (0)