This repository was archived by the owner on Aug 21, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +55
-0
lines changed
Expand file tree Collapse file tree 2 files changed +55
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ sidebar_position : 2
3+ title : Soroban Rust Auth SDK
4+ ---
5+
6+ The ` soroban-auth ` Rust crate contains the Soroban Rust Auth SDK. It provides
7+ utilities for verifying signatures on invocations of smart contracts. It is
8+ intended for use alongside the [ ` soroban-sdk ` ] .
9+
10+ [ `soroban-sdk` ] : rust
11+
12+ :::caution
13+ The ` soroban-auth ` crate is in early development. Report issues
14+ [ here] ( https://github.com/stellar/rs-soroban-sdk/issues/new/choose ) .
15+ :::
16+
17+ ## SDK Documentation
18+
19+ Auth documentation is available at:
20+ https://docs.rs/soroban-auth
21+
22+ ## Subscribe to Releases
23+
24+ Subscribe to releases on the GitHub repository:
25+ https://github.com/stellar/rs-soroban-sdk
26+
27+ ## Add ` soroban-auth ` as a Dependency
28+
29+ Add the following sections to the ` Cargo.toml ` to import ` soroban-auth ` .
30+
31+ ``` toml
32+ [features ]
33+ testutils = [" soroban-auth/testutils" ]
34+
35+ [dependencies ]
36+ soroban-auth = " 0.0.4"
37+
38+ [dev_dependencies ]
39+ soroban-auth = { version = " 0.0.4" , features = [" soroban-auth/testutils" ] }
40+ ```
Original file line number Diff line number Diff line change @@ -36,6 +36,21 @@ test test::test ... ok
3636test test::bad_data - should panic ... ok
3737```
3838
39+ ## Dependencies
40+
41+ The authorization example uses the Soroban auth SDK, and has the following
42+ Soroban dependencies in its Cargo.toml file.
43+
44+ ``` toml title="authorization/src/Cargo.toml
45+ [dependencies ]
46+ soroban-sdk = " 0.0.4"
47+ soroban-auth = " 0.0.4"
48+
49+ [dev_dependencies ]
50+ soroban-sdk = { version = " 0.0.4" , features = [" testutils" ] }
51+ soroban-auth = { version = " 0.0.4" , features = [" testutils" ] }
52+ ```
53+
3954## Code
4055
4156``` rust title="authorization/src/lib.rs"
You can’t perform that action at this time.
0 commit comments