Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cli/src/cli.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -346,10 +346,10 @@ subcommands:
- invitation_status:
about: "Check invitation status"
version: "0.1"
- create_credential_template:
- create-credential-template:
about: "Create credential template"
version: "0.1"
- list_credential_templates:
- list-credential-templates:
about: "List credential templates"
version: "0.1"
- trust-registry:
Expand Down
4 changes: 4 additions & 0 deletions docs/_static/extra.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
h1, h2, h3 {
font-weight: 800;
}

.md-header {
/* background-color: #333; */
box-shadow: none !important;
Expand Down
Binary file added docs/_static/images/trust-triangle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions docs/android/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# The Trinsic Java / Android SDK

The Trinsic Java / Android SDK makes it easy to interact with the Trinsic API from any Java application. The most recent version of the library can be found on ____. You can find the SDKs source on [Github](https://github.com/trinsic-id/sdk/java).

## Installation
TODO

## Configuration
TODO

## Next Steps
TODO

82 changes: 82 additions & 0 deletions docs/cli/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
# The Trinsic CLI

The Trinsic CLI makes it easy to interact with the Trinsic API from your terminal. You can get the CLI on homebrew or build the CLI from source on [Github](https://github.com/trinsic-id/sdk/cli. It contains all the commands of Trinsic's SDKs and makes them interactive.

## Installation

The CLI can be installed directly as binary or built from source.
### Using Homebrew for MacOS and Linux

```
brew tap trinsic-id/trinsic
brew install trinsic
```

### From source using the Rust toolchain

This requires the [Rustup toolchain :material-open-in-new:](https://www.rust-lang.org/tools/install){target=_blank} installed on your system.

Once installed, run this command in terminal:

```bash
cargo +nightly install --git https://github.com/trinsic-id/sdk trinsic
```

To verify that the CLI has been installed successfully, try running:

```bash
trinsic --help
```

## Configuration

The CLI stores its configuration in the user's home directory in `~/.trinsic/`. This directory contains the main configuration file `config.toml` and all the profile data.

### Show Configuration

To print the current configuration file in the terminal use:

```bash
trinsic config --show
```

Typical configuration file may look like this:

```toml
[server]
address = "http://localhost:5000/"

[profile]
default = "my_profile"
```

### Update Configuration Entry

To change the configuration values, use the `config` subcommand with the attribute and it's value.

```bash
trinsic config <attribute_name> <attribute_value>
```

The following attributes are currently supported:

`server-address`
: Updates the default server address the CLI communicates

```bash
trinsic config --server-address https://example.com/
```

`profile-default`
: Updates the default profile used with the CLI

```bash
trinsic config --profile-default alice
```

## Next Steps

Once the CLI is installed and configured, you're ready to start building! We recommend going through the [walkthrough](./vaccination-cli.md) next. If you're ready to dive into building your ecosystem, check out our [API Reference](/reference/index.md)

[Start Walkthrough](./vaccination-cli.md){ .md-button .md-button--primary } [Explore API](/reference/index.md){ .md-button }

Original file line number Diff line number Diff line change
Expand Up @@ -3,35 +3,10 @@
It can be challenging to understand how verifiable credentials work until you see some examples. This walkthrough will show how a vaccination card might be issued, held, and proven using verifiable credentials with the Trinsic CLI. It assumes no prior knowledge to decentralized identity.

--8<----
walkthrough/snippets/intro-infrastructure.md
walkthrough/snippets/intro-use-case.md
/snippets/intro-infrastructure.md
/snippets/intro-use-case.md
--8<----

## Install Trinsic CLI

--8<-- "setup/installation/install-cli.md"

If you're here to just go through the walkthrough, check out our [Gitpod cloud environment](https://gitpod.io/#https://github.com/trinsic-id/sdk) for easy installation (You'll have to create a free account with gitpod).

To install the CLI locally, clone our sdk github repo and compile the SDK
```bash
git clone https://github.com/trinsic-id/sdk.git

cd sdk/cli

cargo install --path .
```

Once installed, configure the CLI's server address to your Ecosystem:

=== "Trinsic CLI"

```bash
trinsic config --server-address https://example.com
```

!!! note
Reference: [Configuration with CLI](../reference/setup/index.md#configuration-with-cli)

## Meet Allison

Expand Down
61 changes: 0 additions & 61 deletions docs/concepts/index.md

This file was deleted.

40 changes: 40 additions & 0 deletions docs/dotnet/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# The Trinsic C# / .NET SDK
The Trinsic C# / .NET SDK makes it easy to interact with the Trinsic API from your .NET application. The most recent version of the library can be found on NuGet. The Trinsic SDK supports .NET applications written in C#, VB.NET, and F# that utilize any supported version of .NET Core. You can also find the SDKs source on [Github](https://github.com/trinsic-id/sdk/dotnet).

## Installation
Install the packages directly from [Nuget.org :material-open-in-new:](https://www.nuget.org/packages/Trinsic){target=_blank}

=== "Package Manager"
```
PM> Install-Package Trinsic
```
=== ".NET CLI"
```
> dotnet add package Trinsic
```
=== "PackageReference"
```
<PackageReference Include="Trinsic" />
```

## Configuration

```csharp
using Trinsic;

// Set the server address
var service = new WalletService("https://example.com");

// Create new profile or import an existing one
var myProfile = await service.CreateWallet();

// Set the profile to be used with authorization pipeline
service.SetProfile(myProfile);
```

## Next Steps

Once the CLI is installed and configured, you're ready to start building! We recommend going through the [walkthrough](./vaccination-net.md) next. If you're ready to dive into building your ecosystem, check out our [API Reference](/reference/index.md)

[Start Walkthrough](./vaccination-net.md){ .md-button .md-button--primary } [Explore API](/reference/index.md){ .md-button }

Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Vaccination Use Case for .NET Core

--8<----
walkthrough/snippets/intro-infrastructure.md
walkthrough/snippets/intro-use-case.md
/snippets/intro-infrastructure.md
/snippets/intro-use-case.md
--8<----

## Technical requirements
Expand Down Expand Up @@ -65,7 +65,7 @@ File.WriteAllBytes("allison.bin", allison.ToByteString().ToByteArray());
var allison = WalletProfile.Parser.ParseFrom(File.ReadAllBytes("allison.bin"));
```

Read more about [security profiles](/reference/setup/#authorization) and authentication.
Read more about [security profiles](/reference/#authorization) and authentication.

## Certificate issuance

Expand Down
11 changes: 5 additions & 6 deletions docs/early-adopter.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# Introducing Trinsic Ecosystems
# Introducing Trinsic v2
For development teams ready to integrate verifiable credentials for an industry or use case, Trinsic v2 has been built specifically for you. We're currently in beta with a small group of customers.

For organizations ready to deploy verifiable credentials into a complex industry or use case, Trinsic has prepared tools to help you do so.
If you'd like to experiment with our SDKs, please reach out! Simply fill out the form below, and we'll get in touch.

To learn more about Trinsic Ecosystems, read our announcement about it:
<div class="_form_19"></div><script src="https://streetcred.activehosted.com/f/embed.php?id=19" type="text/javascript" charset="utf-8"></script>

[Announcing Trinsic Ecosystems](https://trinsic.id/introducing-trinsic-ecosystems/)

<div class="_form_19"></div><script src="https://streetcred.activehosted.com/f/embed.php?id=19" type="text/javascript" charset="utf-8"></script>
To learn more about Trinsic v2, read our [announcement](https://trinsic.id/introducing-trinsic-ecosystems/), and continue exploring our docs.
13 changes: 13 additions & 0 deletions docs/go/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# The Trinsic Go SDK

The Trinsic Go SDK makes it easy to interact with the Trinsic API from any Go application. The most recent version of the library can be found on ____. You can find the SDKs source on [Github](https://github.com/trinsic-id/sdk/go).

## Installation
TODO

## Configuration
TODO

## Next Steps
TODO

53 changes: 31 additions & 22 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -1,31 +1,40 @@
# Introduction
---
hide:
- toc
---
# Trinsic Documentation
## Issue and verify universally-accepted digital credentials.
Learn how to issue and verify universally-accepted digital credentials so that anywhere people go online or in-person, they can simply tap their phone, prove who they are, and get what they need.

## Welcome to Trinsic
Trinsic is a developer platform to exchange verifiable credentials.
[**Get started with Trinsic**](learn/index.md) - Learn about Trinsic, work through a basic implementation, plan a full implementation and learn about our tools you can use.

Verifiable Credentials transform credentials, licenses, passes, and certificates into a W3C standard format that can be exchanged digitally and verified instantly. Unlike a paper document or html form, when information from a verifiable credential is shared, it can be instantly proven to be authentic.
[**Join the Beta**](early-adopter.md) - Our platform is still in beta. While our docs are public, you'll need a special environment to start using Trinsic at this time. We're excited to help you! Please contact us and we'll help you get started.
## Connect your app to Trinsic
Get up and running in the language of your choice or interact with Trinsic through your terminal.

They require no centralized authority or proprietary technology to use - verifiable credentials are built on interoperable standards designed to be open, privacy-preserving, and distributed like the internet itself.
[:octicons-terminal-16: **Use the CLI**](cli/index.md)
### Server-side SDKs
[:material-nodejs: Node](node/index.md){ .md-button .md-button--primary }
[:material-language-python: Python](python/index.md){ .md-button .md-button--primary }
[:material-microsoft: .NET](dotnet/index.md){ .md-button .md-button--primary }
### Client-side SDKs

Hundreds of organizations of all sizes and industries use Trinsic’s infrastructure and tools to instantly verify information about individuals with technology instead of paper.
[:fontawesome-brands-js-square: Web](web/index.md){ .md-button .md-button--primary }

## Available SDKs
### Coming Soon

- [x] [C#](./walkthrough/vaccination-net.md)
- [x] Mobile (Xamarin, MAUI)
- [x] .NET Core (MacOS, Windows, Linux)
- [ ] Web Assembly (Blazor)
- [x] TypeScript/JS
- [x] [Node.js](./walkthrough/vaccination-node.md)
- [x] [Browser](./walkthrough/vaccination-browser.md)
- [x] Python
- [x] Go
- [x] Rust
- [x] Swift (iOS)
- [x] Java/Kotlin (Android)
[:material-menu: Go](#){ .md-button }
[:material-language-ruby: Ruby](#){ .md-button }
[:material-language-java: Java](#){ .md-button }
[:material-android: Android](#){ .md-button }
[:material-apple: iOS](#){ .md-button }

## Up Next

- [ ] React Native

Next: [Learn the Concepts](./concepts/index.md)


## Additional Resources
[**Join the Community**](https://join.slack.com/t/trinsiccommunity/shared_invite/zt-pcsdy7kn-h4vtdPEpqQUlmirU8FFzSQ) - We have a growing community on Slack of people who are building with Trinsic. Join to ask questions and participate in our community events.

[**Follow our progress on Github**](https://github.com/trinsic-id) - Most of our work is done in the open. We love to collaborate with developers and are always open to feedback.

13 changes: 13 additions & 0 deletions docs/ios/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# The Trinsic Swift SDK

The Trinsic Swift SDK makes it easy to interact with the Trinsic API from any iOS application. The most recent version of the library can be found on ____. You can find the SDKs source on [Github](https://github.com/trinsic-id/sdk/swift).

## Installation
TODO

## Configuration
TODO

## Next Steps
TODO

Loading