Skip to content

Commit b27b44a

Browse files
committed
Merge branch 'master' into add-bitcoin-taproot-guide
2 parents f8215ef + a26c8e0 commit b27b44a

File tree

9 files changed

+87
-28
lines changed

9 files changed

+87
-28
lines changed

docs/sdk/pnp/android/android.mdx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,6 @@ generated in a non-custodial way on successful user authentication. This authent
1212
achieved by using any social login options that Web3Auth supports or custom authentication flow of
1313
your choice.
1414

15-
## Requirements
16-
17-
- Android API version `24` or newer.
18-
- Android Compile and Target SDK: `34`.
19-
- Basic knowledge of Java or Kotlin Development.
20-
2115
## Resources
2216

2317
- [Quick Start](/quick-start?product=PNP&sdk=PNP_ANDROID&framework=ANDROID&stepIndex=0): Get Started

docs/sdk/pnp/android/install.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ import Whitelist from "@site/src/common/sdk/pnp/android/_android-whitelist.mdx";
1111
import Deeplinking from "@site/src/common/sdk/pnp/android/_android-deep-linking.mdx";
1212
import ManifestChanges from "@site/src/common/sdk/pnp/android/_android-manifest-changes.mdx";
1313

14+
## Requirements
15+
16+
- Android API version `24` or newer.
17+
- Android Compile and Target SDK: `34`.
18+
- Basic knowledge of Java or Kotlin Development.
19+
1420
## Installation
1521

1622
<UpdateGradle />

docs/sdk/pnp/android/usage.mdx

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,19 @@ import EnableMFAMethod from "@site/src/common/sdk/pnp/android/_enable-mfa.mdx";
1414
Web3Auth's Android SDK is a set of libraries and tools that allow you to easily integrate Web3 with
1515
Android applications.
1616

17+
## Functionality Overview
18+
19+
| Name | Description |
20+
| ----------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
21+
| [login](#logging-in-a-user) | Logs in the user with the selected login provider. |
22+
| [logout](#logging-out-a-user) | Logs out the user from the currently active session. |
23+
| [getPrivKey](#secp256k1-private-key) | Retrieve the user's secp256K1 key. The key can be used to sign transactions for chains using the secp256k1 curve like EVM-compatible chains. |
24+
| [getEd25519PrivKey](#ed25519-private-key) | Retrieve the user's ed25519 key. The key can be used to sign transactions for chains using the ed25519 curve like Solana, Near, Algorand, and others. |
25+
| [getUserInfo](#retrieve-user-information) | Retrieve the user information, such as login provider, name, email, oAuth token, etc. |
26+
| [enableMFA](#enable-mfa-for-a-user) | Use to trigger the setup MFA flow for the users. |
27+
| [launchWalletServices](#launch-wallet-services) | Use to open the templated wallet UI in WebView. |
28+
| [request](#request-signature) | Use to open templated transaction screens for signing EVM transactions. |
29+
1730
## Logging in a User
1831

1932
To login in a user, you can use the `login` method. It will trigger login flow will navigate the
@@ -336,13 +349,14 @@ val privateKey = web3Auth.getPrivKey()
336349
### Ed25519 Private Key
337350

338351
To retrieve the secp256k1 private key of the user., use `getEd25519PrivKey` method. This private key
339-
can be used to sign transactions on Solana.
352+
can be used to sign transactions on Solana, Near, Algorand, and other chains that use the ed25519
353+
curve.
340354

341355
```kotlin
342356
val privateKey = web3Auth.getEd25519PrivKey()
343357
```
344358

345-
## Retrive User Information
359+
## Retrieve User Information
346360

347361
You can use the `getUserInfo` method to retrieve various details about the user, such as their login
348362
type, whether multi-factor authentication (MFA) is enabled, profile image, name, and other relevant
@@ -472,8 +486,8 @@ val completableFuture = web3Auth.launchWalletServices(
472486
## Request signature
473487

474488
The `request` method facilitates the use of templated transaction screens for signing transactions.
475-
Upon successful completion, you can retrieve the signature for the request using the
476-
`getSignResponse` static method.
489+
The method will return [SignResponse](#signresponse). It can be used to sign transactions for any
490+
EVM chain and screens can be whitelabeled to your branding.
477491

478492
Please check the list of
479493
[JSON RPC methods](https://docs.metamask.io/wallet/reference/json-rpc-api/), noting that the request
@@ -524,3 +538,11 @@ signMsgCompletableFuture.whenComplete { signResult, error ->
524538
}
525539
}
526540
```
541+
542+
### SignResponse
543+
544+
| Name | Description |
545+
| --------- | ------------------------------------------------------------- |
546+
| `success` | Determines whether the request was successful or not. |
547+
| `result?` | Holds the signature for the request when `success` is `true`. |
548+
| `error?` | Holds the error for the request when `success` is `false`. |

docs/sdk/pnp/flutter/flutter.mdx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,6 @@ It returns a private key generated in a non-custodial way on successful user aut
1111
authentication is achieved by using any of the supported social logins Web3Auth provides or using a
1212
custom authentication flow of your choice.
1313

14-
## Requirements
15-
16-
- **Android** API version 26 or newer.
17-
- **iOS** 14, Xcode 12+ and Swift 5.x
18-
1914
## Resources
2015

2116
- [Quick Start](/quick-start?product=PNP&sdk=PNP_FLUTTER&framework=ANDROID&stepIndex=1&stepIndex=0):

docs/sdk/pnp/flutter/install.mdx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ import SPM from "@site/src/common/sdk/pnp/ios/_spm.mdx";
1717
import Cocoapods from "@site/src/common/sdk/pnp/ios/_cocoapods.mdx";
1818
import IOSWhitelist from "@site/src/common/sdk/pnp/ios/ios-whitelist.mdx";
1919

20+
## Requirements
21+
22+
- **Android** API version 26 or newer.
23+
- **iOS** 14, Xcode 12+ and Swift 5.x
24+
2025
## Installation
2126

2227
<FlutterInstallation />

docs/sdk/pnp/flutter/usage.mdx

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,19 @@ import FlutterResponse from "@site/src/common/sdk/pnp/_userinfo_response.mdx";
1010
import SMSPasswordless from "@site/src/common/sdk/pnp/flutter/_sms_passwordless.mdx";
1111
import EnableMFAMethod from "@site/src/common/sdk/pnp/flutter/_enable-mfa.mdx";
1212

13+
## Functionality Overview
14+
15+
| Name | Description |
16+
| ----------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
17+
| [login](#logging-in-a-user) | Logs in the user with the selected login provider. |
18+
| [logout](#logging-out-a-user) | Logs out the user from the currently active session. |
19+
| [getPrivKey](#secp256k1-private-key) | Retrieve the user's secp256K1 key. The key can be used to sign transactions for chains using the secp256k1 curve like EVM-compatible chains. |
20+
| [getEd25519PrivKey](#ed25519-private-key) | Retrieve the user's ed25519 key. The key can be used to sign transactions for chains using the ed25519 curve like Solana, Near, Algorand, and others. |
21+
| [getUserInfo](#retrieve-user-information) | Retrieve the user information, such as login provider, name, email, oAuth token, etc. |
22+
| [enableMFA](#enable-mfa-for-a-user) | Use to trigger the setup MFA flow for the users. |
23+
| [launchWalletServices](#launch-wallet-services) | Use to open the templated wallet UI in WebView. |
24+
| [request](#request-signature) | Use to open templated transaction screens for signing EVM transactions. |
25+
1326
## Logging in a User
1427

1528
To login in a user, you can use the `login` method. It will trigger login flow will navigate the
@@ -410,13 +423,14 @@ final privateKey = await Web3AuthFlutter.getPrivKey();
410423
### Ed25519 Private Key
411424

412425
To retrieve the secp256k1 private key of the user., use `getEd25519PrivKey` method. This private key
413-
can be used to sign transactions on Solana.
426+
can be used to sign transactions on Solana, Near, Algorand, and other chains that use the ed25519
427+
curve.
414428

415429
```dart
416430
final privateKey = await Web3AuthFlutter.getEd25519PrivKey();
417431
```
418432

419-
## Retrive User Information
433+
## Retrieve User Information
420434

421435
You can use the `getUserInfo` method to retrieve various details about the user, such as their login
422436
type, whether multi-factor authentication (MFA) is enabled, profile image, name, and other relevant
@@ -586,8 +600,8 @@ try {
586600
## Request signature
587601

588602
The `request` method facilitates the use of templated transaction screens for signing transactions.
589-
Upon successful completion, you can retrieve the signature for the request using the
590-
`getSignResponse` static method.
603+
The method will return [SignResponse](#signresponse). It can be used to sign transactions for any
604+
EVM chain and screens can be whitelabeled to your branding.
591605

592606
Please check the list of
593607
[JSON RPC methods](https://docs.metamask.io/wallet/reference/json-rpc-api/), noting that the request
@@ -632,3 +646,11 @@ try {
632646
log("Unknown exception occurred");
633647
}
634648
```
649+
650+
### SignResponse
651+
652+
| Name | Description |
653+
| --------- | ------------------------------------------------------------- |
654+
| `success` | Determines whether the request was successful or not. |
655+
| `result?` | Holds the signature for the request when `success` is `true`. |
656+
| `error?` | Holds the error for the request when `success` is `false`. |

docs/sdk/pnp/ios/install.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ import SPM from "@site/src/common/sdk/pnp/ios/_spm.mdx";
88
import Cocoapods from "@site/src/common/sdk/pnp/ios/_cocoapods.mdx";
99
import Whitelist from "@site/src/common/sdk/pnp/ios/ios-whitelist.mdx";
1010

11+
## Requirements
12+
13+
- iOS 14+
14+
- Xcode 12+
15+
- Swift 5.x
16+
1117
## Swift Package Manager
1218

1319
<SPM />

docs/sdk/pnp/ios/ios.mdx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,6 @@ a private key generated in a non custodial way on successful authentication of t
1212
authentication can be achieved by using any of the social logins Web3Auth provides or using a custom
1313
authentication flow of your choice.
1414

15-
### Requirements
16-
17-
- iOS 14+
18-
- Xcode 12+
19-
- Swift 5.x
20-
2115
## Resources
2216

2317
- [Quick Start](/quick-start?product=PNP&sdk=PNP_IOS&framework=IOS&stepIndex=0): Get Started with an

docs/sdk/pnp/ios/usage.mdx

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,19 @@ import Tabs from "@theme/Tabs";
1111
import SMSPasswordless from "@site/src/common/sdk/pnp/ios/_sms_passwordless.mdx";
1212
import EnableMFAMethod from "@site/src/common/sdk/pnp/ios/_enable-mfa.mdx";
1313

14+
## Functionality Overview
15+
16+
| Name | Description |
17+
| ----------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
18+
| [login](#logging-in-a-user) | Logs in the user with the selected login provider. |
19+
| [logout](#logging-out-a-user) | Logs out the user from the currently active session. |
20+
| [getPrivKey](#secp256k1-private-key) | Retrieve the user's secp256K1 key. The key can be used to sign transactions for chains using the secp256k1 curve like EVM-compatible chains. |
21+
| [getEd25519PrivKey](#ed25519-private-key) | Retrieve the user's ed25519 key. The key can be used to sign transactions for chains using the ed25519 curve like Solana, Near, Algorand, and others. |
22+
| [getUserInfo](#retrieve-user-information) | Retrieve the user information, such as login provider, name, email, oAuth token, etc. |
23+
| [enableMFA](#enable-mfa-for-a-user) | Use to trigger the setup MFA flow for the users. |
24+
| [launchWalletServices](#launch-wallet-services) | Use to open the templated wallet UI in WebView. |
25+
| [request](#request-signature) | Use to open templated transaction screens for signing EVM transactions. |
26+
1427
## Logging in a User
1528

1629
To login in a user, you can use the `login` method. It will trigger login flow will navigate the
@@ -281,13 +294,14 @@ let privateKey = web3Auth.getPrivKey();
281294
### Ed25519 Private Key
282295

283296
To retrieve the secp256k1 private key of the user., use `getEd25519PrivKey` method. This private key
284-
can be used to sign transactions on Solana.
297+
can be used to sign transactions on Solana, Near, Algorand, and other chains that use the ed25519
298+
curve.
285299

286300
```swift
287301
let privateKey = web3Auth.getEd25519PrivKey();
288302
```
289303

290-
## Retrive User Information
304+
## Retrieve User Information
291305

292306
You can use the `getUserInfo` method to retrieve various details about the user, such as their login
293307
type, whether multi-factor authentication (MFA) is enabled, profile image, name, and other relevant
@@ -423,7 +437,8 @@ do {
423437
## Request signature
424438

425439
The `request` method facilitates the use of templated transaction screens for signing transactions.
426-
The method will return [SignResponse](#signresponse).
440+
The method will return [SignResponse](#signresponse). It can be used to sign transactions for any
441+
EVM chain and screens can be whitelabeled to your branding.
427442

428443
Please check the list of
429444
[JSON RPC methods](https://docs.metamask.io/wallet/reference/json-rpc-api/), noting that the request

0 commit comments

Comments
 (0)