Skip to content

feat: support eddsa, ckd, switch ecdsa to v2#13

Merged
andrei-near merged 2 commits intomainfrom
gilcu3/add_metrics_for_ecdsa_and_ckd
Nov 20, 2025
Merged

feat: support eddsa, ckd, switch ecdsa to v2#13
andrei-near merged 2 commits intomainfrom
gilcu3/add_metrics_for_ecdsa_and_ckd

Conversation

@gilcu3
Copy link
Contributor

@gilcu3 gilcu3 commented Nov 18, 2025

Closes #14

Adds support for new Mpc metrics:

  • Eddsa signatures
  • v2 Ecdsa signatures (instead of the old one)
  • Ckd

@gilcu3 gilcu3 requested a review from netrome November 18, 2025 16:19
@andrei-near andrei-near merged commit 464560d into main Nov 20, 2025
2 checks passed
andrei-near added a commit that referenced this pull request Nov 20, 2025
Follow up to #13 

Adding results this time:
```console
❯ cargo run -- --mode run --rpc-url https://rpc.testnet.near.org --signer-id gilcu3.testnet --signer-key "ed25519:$PRIVATE_KEY" --receiver-id tx-bench-buddy.near --wrap-near-id wrap.near --ft-account-id usdt.tether-token.near --exchange-id v2.ref-finance.near --mpc-contract-id v1.signer-prod.testnet --pool-id 3879 --period 3m --interval-overwrite '{"mpc-sign-ecdsa": "10s", "mpc-sign-eddsa": "10s"}'
   Compiling transaction-bench v0.1.0 (/home/rey/opt/near/transaction-bench)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.33s
     Running `target/debug/main --mode run --rpc-url 'https://rpc.testnet.near.org' --signer-id gilcu3.testnet --signer-key 'ed25519:561CCDGTqnGrfJcsYwcuRgvU6JCiJnt2GGVpKfkkFcH21o1he4NorPPiyQxPp92VNxygmTRDhFcfQchV7RTYsdHh' --receiver-id tx-bench-buddy.near --wrap-near-id wrap.near --ft-account-id usdt.tether-token.near --exchange-id v2.ref-finance.near --mpc-contract-id v1.signer-prod.testnet --pool-id 3879 --period 3m --interval-overwrite '{"mpc-sign-ecdsa": "10s", "mpc-sign-eddsa": "10s"}'`
2025-11-20T11:07:57.922211Z  INFO configuration: Opts { mode: Run, rpc_url: "https://rpc.testnet.near.org", signer_id: AccountId("gilcu3.testnet"), signer_key: ED25519(Ekpp1V9jSwAPrVqT3Qdw2FXAXDZZvxRf9oXRCyDV4VJ9), receiver_id: AccountId("tx-bench-buddy.near"), wrap_near_id: AccountId("wrap.near"), ft_account_id: AccountId("usdt.tether-token.near"), exchange_id: AccountId("v2.ref-finance.near"), mpc_contract_id: AccountId("v1.signer-prod.testnet"), pool_id: 3879, transaction_kind: [], repeats_number: 1, period: 180s, interval_overwrite: Some({MpcSignEddsa: 10s, MpcSignEcdsa: 10s}), metric_server_address: 0.0.0.0:9000, location: "unknown" }
2025-11-20T11:07:57.922268Z  INFO starting metrics server on 0.0.0.0:9000
2025-11-20T11:07:57.922420Z  INFO starting transaction engine
2025-11-20T11:07:57.923653Z  INFO running transactions with interval 10s: [MpcSignEddsa, MpcSignEcdsa]
2025-11-20T11:07:57.923700Z  INFO running transactions with interval 180s: [TokenTransferFinal, FungibleTokenTransfer, Swap, TokenTransferIncludedFinal, TokenTransferDefault]
2025-11-20T11:07:58.052128Z  INFO executing transaction mpc-sign-eddsa#0 for gilcu3.testnet
2025-11-20T11:08:05.136665Z  INFO completed transaction mpc-sign-eddsa#0 for gilcu3.testnet: 7.084442332s
2025-11-20T11:08:05.136808Z  INFO executing transaction mpc-sign-ecdsa#0 for gilcu3.testnet
2025-11-20T11:08:11.720887Z  INFO completed transaction mpc-sign-ecdsa#0 for gilcu3.testnet: 6.583993412s
2025-11-20T11:08:11.721076Z  INFO running transactions with interval 10s: [MpcSignEddsa, MpcSignEcdsa]
2025-11-20T11:08:11.783850Z  INFO executing transaction token-transfer-default#0 for gilcu3.testnet
2025-11-20T11:08:13.342904Z  WARN error during transaction token-transfer-default#0 for gilcu3.testnet: NEAR transfer, wait_until default failed: unsuccessful execution
2025-11-20T11:08:13.343006Z  INFO executing transaction token-transfer-final#0 for gilcu3.testnet
2025-11-20T11:08:17.404438Z  WARN error during transaction token-transfer-final#0 for gilcu3.testnet: NEAR transfer, wait_until Final failed: unsuccessful execution
2025-11-20T11:08:17.404578Z  INFO executing transaction swap#0 for gilcu3.testnet
2025-11-20T11:08:20.476742Z  WARN error during transaction swap#0 for gilcu3.testnet: swap from NEAR to USDT failed: unsuccessful execution
2025-11-20T11:08:20.476833Z  INFO executing transaction fungible-token-transfer#0 for gilcu3.testnet
2025-11-20T11:08:23.049516Z  WARN error during transaction fungible-token-transfer#0 for gilcu3.testnet: USDT FT transfer failed: unsuccessful execution
2025-11-20T11:08:23.049649Z  INFO executing transaction token-transfer-included-final#0 for gilcu3.testnet
2025-11-20T11:08:26.113960Z  WARN error during transaction token-transfer-included-final#0 for gilcu3.testnet: NEAR transfer, wait_until IncludedFinal failed: unsuccessful execution
2025-11-20T11:08:26.166779Z  INFO executing transaction mpc-sign-eddsa#0 for gilcu3.testnet
2025-11-20T11:08:34.247670Z  INFO completed transaction mpc-sign-eddsa#0 for gilcu3.testnet: 8.080817758s
2025-11-20T11:08:34.247752Z  INFO executing transaction mpc-sign-ecdsa#0 for gilcu3.testnet
2025-11-20T11:08:40.842114Z  INFO completed transaction mpc-sign-ecdsa#0 for gilcu3.testnet: 6.594303461s
2025-11-20T11:08:40.842240Z  INFO running transactions with interval 10s: [MpcSignEddsa, MpcSignEcdsa]
2025-11-20T11:08:40.901826Z  INFO executing transaction mpc-sign-ecdsa#0 for gilcu3.testnet
2025-11-20T11:08:48.481313Z  INFO completed transaction mpc-sign-ecdsa#0 for gilcu3.testnet: 7.579356874s
2025-11-20T11:08:48.481427Z  INFO executing transaction mpc-sign-eddsa#0 for gilcu3.testnet
2025-11-20T11:08:56.108460Z  INFO completed transaction mpc-sign-eddsa#0 for gilcu3.testnet: 7.626956164s
2025-11-20T11:08:56.108574Z  INFO running transactions with interval 10s: [MpcSignEddsa, MpcSignEcdsa]
2025-11-20T11:08:56.159970Z  INFO executing transaction mpc-sign-ecdsa#0 for gilcu3.testnet
^C2025-11-20T11:08:58.785493Z  INFO transaction engine shutting down
```
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.

Support Mpc eddsa and ckd

2 participants