Skip to content

Commit

Permalink
Merge pull request WalletConnect#1495 from WalletConnect/swift-sign-c…
Browse files Browse the repository at this point in the history
…onfigure

add sign configuration
  • Loading branch information
llbartekll authored Mar 16, 2024
2 parents e7b3afa + b4248ea commit 8e52f50
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
8 changes: 8 additions & 0 deletions docs/api/sign/dapp-usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,14 @@ Make sure that you properly configure Networking and Pair Clients first.
- [Networking](../core/relay.mdx)
- [Pairing](../core/pairing.mdx)

#### Configure Sign Client

In order to initialize a client, call a `configure` method on the Sign instance

```swift
Sign.configure(crypto: CryptoProvider)
```

#### Subscribe for Sign publishers

When your `Sign` instance receives requests from a peer it will publish related event. So you should set subscription to handle them.
Expand Down
10 changes: 2 additions & 8 deletions docs/api/sign/wallet-usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -348,16 +348,10 @@ Confirm you have configured the Network and Pair Client first

#### Configure Sign Client

In order to initialize a client, call a `configure` method from the Sign instance wrapper
In order to initialize a client, call a `configure` method on the Sign instance

```swift
let metadata = AppMetadata(
name: "Swift wallet",
description: "wallet",
url: "wallet.connect",
icons: ["https://my_icon.com/1"]
)
Sign.configure(metadata: metadata)
Sign.configure(crypto: CryptoProvider)
```

#### Subscribe for Sign Publishers
Expand Down

0 comments on commit 8e52f50

Please sign in to comment.