Commit Graph

121 Commits

Author SHA1 Message Date
timurgordon
c0e11c6510 merge and fix tests
Some checks failed
Rhai Tests / Run Rhai Tests (push) Has been cancelled
2025-05-23 21:46:11 +03:00
timurgordon
fedf957079 Merge branch 'development_lee' 2025-05-23 21:14:31 +03:00
timurgordon
65e404e517 merge branches and document
Some checks are pending
Rhai Tests / Run Rhai Tests (push) Waiting to run
2025-05-23 21:12:17 +03:00
944f22be23 Merge pull request 'clean up' (#12) from zinit_client into main
Reviewed-on: #12
2025-05-23 17:37:45 +00:00
887e66bb17 Merge pull request 'mycelium-rhai' (#9) from mycelium-rhai into main
Some checks are pending
Rhai Tests / Run Rhai Tests (push) Waiting to run
Reviewed-on: #9
2025-05-23 16:40:28 +00:00
Lee Smet
e5a4a1b634
Add tests for symmetric keys
Some checks failed
Rhai Tests / Run Rhai Tests (pull_request) Has been cancelled
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2025-05-16 15:19:45 +02:00
Lee Smet
7f55cf4fba
Add tests for asymmetric keys, add public key export
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2025-05-16 15:05:45 +02:00
Maxime Van Hees
c26e0e5ad8 removed unused imports
Some checks failed
Rhai Tests / Run Rhai Tests (pull_request) Has been cancelled
2025-05-16 15:04:00 +02:00
Lee Smet
365814b424
Fix signature key import/export, add tests
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2025-05-16 14:37:10 +02:00
Maxime Van Hees
cc4e087f1d fixed wrong link to file, again
Some checks failed
Rhai Tests / Run Rhai Tests (pull_request) Has been cancelled
2025-05-16 14:32:35 +02:00
Maxime Van Hees
229fef217f fixed wrong link to file
Some checks failed
Rhai Tests / Run Rhai Tests (pull_request) Has been cancelled
2025-05-16 14:32:03 +02:00
Maxime Van Hees
dd84ce3f48 remove command from tutorial
Some checks failed
Rhai Tests / Run Rhai Tests (pull_request) Has been cancelled
2025-05-16 14:30:46 +02:00
Maxime Van Hees
7b8b8c662e Added tutorial on how to send/receive message with 2 mycelium peers running the same host
Some checks failed
Rhai Tests / Run Rhai Tests (pull_request) Has been cancelled
2025-05-16 14:28:49 +02:00
Lee Smet
d29a8fbb67
Rename Store to Vault and move to lib root
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2025-05-16 11:24:27 +02:00
Maxime Van Hees
771df07c25 Add tutorial explain how to use Mycelium in Rhai scripts
Some checks failed
Rhai Tests / Run Rhai Tests (pull_request) Has been cancelled
2025-05-16 10:25:51 +02:00
Maxime Van Hees
9a23c4cc09 sending and receiving message via Rhai script + added examples
Some checks failed
Rhai Tests / Run Rhai Tests (push) Has been cancelled
Rhai Tests / Run Rhai Tests (pull_request) Has been cancelled
2025-05-15 17:30:20 +02:00
Lee Smet
2014c63b78
Remove old files
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2025-05-15 13:53:54 +02:00
Lee Smet
2adda10664
Basic API
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2025-05-15 13:53:16 +02:00
Lee Smet
7b1908b676
Use kvstore as backing
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2025-05-14 19:21:02 +02:00
Lee Smet
e9b867a36e
Individiual methods for keystores
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2025-05-14 11:49:36 +02:00
Lee Smet
78c0fd7871
Define the global KeySpace interface
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2025-05-14 11:10:52 +02:00
Lee Smet
e44ee83e74
Implement proper key types
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2025-05-13 17:37:33 +02:00
0c425470a5 Merge pull request 'Simplify and Refactor Asymmetric Encryption/Decryption' (#10) from development_fix_code into main
Some checks failed
Rhai Tests / Run Rhai Tests (push) Has been cancelled
Reviewed-on: #10
2025-05-13 13:00:16 +00:00
Maxime Van Hees
3e64a53a83 working example for mycelium
Some checks failed
Rhai Tests / Run Rhai Tests (pull_request) Has been cancelled
2025-05-13 14:10:32 +02:00
Maxime Van Hees
3225b3f029 corrected response mapping from API requests 2025-05-13 14:10:32 +02:00
Maxime Van Hees
3417e2c1ff fixed merge conflict 2025-05-13 14:10:10 +02:00
Mahmoud Emad
7add64562e feat: Simplify asymmetric encryption/decryption
Some checks failed
Rhai Tests / Run Rhai Tests (pull_request) Has been cancelled
- Simplify asymmetric encryption by using a single symmetric key
  instead of deriving a key from an ephemeral key exchange.  This
  improves clarity and reduces complexity.
- The new implementation encrypts the symmetric key with the
  recipient's public key and then encrypts the message with the
  symmetric key.
- Improve test coverage for asymmetric encryption/decryption.
2025-05-13 14:45:05 +03:00
Mahmoud Emad
809599d60c fix: Get the code to compile 2025-05-13 14:12:48 +03:00
Mahmoud Emad
25f2ae6fa9 refactor: Refactor keypair and Ethereum wallet handling
Some checks failed
Rhai Tests / Run Rhai Tests (push) Has been cancelled
- Moved `prepare_function_arguments` and `convert_token_to_rhai` to the `ethereum` module for better organization.
- Updated `keypair` module to use the new `session_manager` structure improving code clarity.
- Changed `KeyPair` type usage to new `vault::keyspace::keypair_types::KeyPair` for consistency.
- Improved error handling and clarity in `EthereumWallet` methods.
2025-05-13 13:55:04 +03:00
Lee Smet
dfe6c91273
Fix build issues
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2025-05-13 11:45:06 +02:00
a4438d63e0 ... 2025-05-13 08:02:23 +03:00
393c4270d4 ... 2025-05-13 07:28:02 +03:00
495fe92321 Merge branch 'development_keypair_tests'
* development_keypair_tests:
  feat: Add comprehensive test suite for Keypair module
2025-05-13 06:51:30 +03:00
577d80b282 restore 2025-05-13 06:51:20 +03:00
3f8aecb786 tests & fixes in kvs & keypair 2025-05-13 06:45:04 +03:00
Mahmoud Emad
c7a5699798 feat: Add comprehensive test suite for Keypair module
- Added tests for keypair creation and operations.
- Added tests for key space management.
- Added tests for session management and error handling.
- Added tests for asymmetric encryption and decryption.
- Improved error handling and reporting in the module.
2025-05-12 15:44:14 +03:00
Mahmoud Emad
3a0900fc15 refactor: Improve Rhai test runner and vault module code
Some checks are pending
Rhai Tests / Run Rhai Tests (push) Waiting to run
- Updated the Rhai test runner script to correctly find test files.
- Improved the structure and formatting of the `vault.rs` module.
- Minor code style improvements in multiple files.
2025-05-12 12:47:37 +03:00
Maxime Van Hees
916eabfa42 clean up 2025-05-12 11:17:15 +02:00
a8ed0900fd ...
Some checks are pending
Rhai Tests / Run Rhai Tests (push) Waiting to run
2025-05-12 12:16:03 +03:00
e47e163285 ...
Some checks are pending
Rhai Tests / Run Rhai Tests (push) Waiting to run
2025-05-12 06:14:16 +03:00
8aa2b2da26 Merge branch 'zinit_client'
Some checks are pending
Rhai Tests / Run Rhai Tests (push) Waiting to run
* zinit_client:
  working example to showcase zinit usage in Rhai scripts
  implemented zinit-client for integration with Rhai-scripts

# Conflicts:
#	Cargo.toml
#	src/lib.rs
#	src/rhai/mod.rs
2025-05-12 06:12:40 +03:00
992481ce1b Merge branch 'development_hero_vault'
* development_hero_vault:
  Add docs
  Support conatrcts call args in rhai bindings
  remove obsolete print
  feat: support interacting with smart contracts on EVM-based blockchains
  refactor and add peaq support
  feat: introduce hero_vault
2025-05-12 06:10:05 +03:00
516d0177e7 ...
Some checks are pending
Rhai Tests / Run Rhai Tests (push) Waiting to run
2025-05-12 06:09:25 +03:00
Mahmoud Emad
8285fdb7b9 Merge branch 'main' of https://git.ourworld.tf/herocode/sal
Some checks failed
Rhai Tests / Run Rhai Tests (push) Has been cancelled
2025-05-10 08:50:16 +03:00
Mahmoud Emad
1ebd591f19 feat: Enhance documentation and add .gitignore entries
- Add new documentation sections for PostgreSQL installer
  functions and usage examples.  Improves clarity and
  completeness of the documentation.
- Add new files and patterns to .gitignore to prevent
  unnecessary files from being committed to the repository.
  Improves repository cleanliness and reduces clutter.
2025-05-10 08:50:05 +03:00
7298645368 Add docs 2025-05-10 01:21:10 +03:00
f669bdb84f Support conatrcts call args in rhai bindings
Some checks failed
Rhai Tests / Run Rhai Tests (push) Has been cancelled
2025-05-10 00:42:21 +03:00
654f91b849 remove obsolete print 2025-05-09 19:15:34 +03:00
619ce57776 feat: support interacting with smart contracts on EVM-based blockchains
Some checks are pending
Rhai Tests / Run Rhai Tests (push) Waiting to run
2025-05-09 19:04:38 +03:00
2695b5f5f7 Merge remote-tracking branch 'origin/main' into development_hero_vault 2025-05-09 17:20:49 +03:00