Skip to content

Conversation

@simonjonsson87
Copy link
Collaborator

This PR adds:

  • A custom API with RA-TLS support
  • Python client demonstrating RA-TLS usage

@simonjonsson87 simonjonsson87 changed the title Custom, RA-TLS enabled API and a Python client feat(python-client): add example for RA-TLS supported server Sep 3, 2025
@@ -0,0 +1,3 @@
from .ra_tls_main import main
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can the example be renamed to something more specific e.g. examples/ra-tls-client/

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, I'll refractor to 'ra-tls-client'


return unlock_tx_hash

def get_cyclo_contract_abi(self) -> list[dict[str, Any]]:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of hard coding the contract in the code, the JSON should be placed under src/flare-ai-kit/abis/, helper methods load_abi() for loading are already present under flare-ai-kit/common/utils.py

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I'll do this for all files with ABI in the code.

list: The ABI (Application Binary Interface) for the Unitroller contract, defining functions like enterMarkets and exitMarket.
"""
return [
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same point here re abis

]

def get_lending_contract_abi(self) -> list[dict[str, Any]]:
return [
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and here

]
requires-python = ">=3.12"
dependencies = [
"tlslite-ng @ git+https://github.com/simonjonsson87/tlslite-ng.git@master",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of using a separate repo that needs to be maintained/rebased etc. Is it possible to include the custom logic within the kit itself?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately not. My edits to TLSLite impacts many functions and classes. It's very much a modifications of existing code, rather than separate code that could be moved to flare-ai-kit.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, then can we add this as an optional dependency under the tee group.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants