Orange-Wallet / wallet-connect-dart

Wallet Connect client in Dart.
https://pub.dev/packages/wallet_connect
BSD 3-Clause "New" or "Revised" License
115 stars 78 forks source link

How to generate wc: uri #30

Open KalpeshTalkar opened 1 year ago

KalpeshTalkar commented 1 year ago

As per the docs, after creating instance of WCClient, we need to create a session:

final wcUri = '...';
final session = WCSession.from(wcUri);

I am new to blockchain and crypto wallets. Can some one please help me understand, how can I create the wcUri? Also, does the WCClient automatically stores the session and we don't need to re-authenticate on every app launch?

Thanks.

makinghappen commented 1 year ago

it looks like wcURI generation was not implemented, the Kotlin implementation could be used for porting

https://github.com/WalletConnect/WalletConnectKotlinV2/blob/06ae60ca3c8a0fdbaebba5ec2347dd17f836f339/androidCore/sdk/src/main/kotlin/com/walletconnect/android/internal/common/model/WalletConnectUri.kt https://github.com/WalletConnect/WalletConnectKotlinV2/blob/42e220a66248d33e88bcfd04541ed6374ecdbc84/androidCore/sdk/src/main/kotlin/com/walletconnect/android/pairing/engine/domain/PairingEngine.kt https://github.com/WalletConnect/WalletConnectKotlinV2/blob/42e220a66248d33e88bcfd04541ed6374ecdbc84/androidCore/impl/src/main/kotlin/com/walletconnect/android/impl/data/repository/BouncyCastleKeyManagementRepository.kt