Skip to content

Commit

Permalink
doc: updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
sksadjad committed Aug 2, 2024
1 parent 521a572 commit 89293bd
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions packages/kms-musap-rn/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ yarn add @sphereon/ssi-sdk-ext.kms-musap-rn
To create a key, you need to specify the key type and provide a keyAlias as part of the metadata. Here is an example of how to create a key:

```typescript
import {MusapKey, MusapModule} from "@sphereon/musap-react-native";
import {MusapKeyManagementSystem} from "@sphereon/ssi-sdk-ext.musap-rn-kms";
import {MusapKey} from "@sphereon/musap-react-native";
import {MusapKeyManagementSystem} from "@sphereon/ssi-sdk-ext.kms-musap-rn";

const kms: MusapKeyManagementSystem = new MusapKeyManagementSystem(MusapModule, 'TEE')
const kms: MusapKeyManagementSystem = new MusapKeyManagementSystem('TEE')

async function createKeyExample() {
try {
Expand All @@ -50,9 +50,8 @@ After creating a key, you can use it to sign data. Here's an example of how to s
```typescript
import {ManagedKeyInfo} from '@veramo/core';
import {MusapKeyManagementSystem} from '@sphereon/ssi-sdk-ext.kms-musap-rn';
import {MusapModuleType} from '@sphereon/musap-react-native';

const kms: MusapKeyManagementSystem = new MusapKeyManagementSystem(MusapModule, 'TEE')
const kms: MusapKeyManagementSystem = new MusapKeyManagementSystem()

async function signDataExample(keyManagedInfo: ManagedKeyInfo, data: Uint8Array) {
try {
Expand Down

0 comments on commit 89293bd

Please sign in to comment.