-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: Implementing Pluto Repositories (#160)
BREAKING CHANGE: - Domain.Credential now has uuid (string) as an optional attribute in the class - Change StorePrismDID Function parameters, removing keyPathIndex and privateKeyMetadataId which were not in use - Small change in the getCredentialMetadata and getLinkSecret to return null when not found - Change Pluto interface to use CredentialMetadata class VS what it was using before. - Change Pluto interface, storeMediator now accepts a Mediator class and not 3 attributes, mediator, host and routing - Rename storePrivateKeys to storePrivateKey - Change Pluto interface, using Domain.PrismDID instead of Domain.PrismDID which is being removed - Added new properties to handle Anoncreds credentials properties. - Re-implemented Pluto which is now available again to all the users. import SDK from "@atala/prism-wallet-sdk"; import IndexDB from "@pluto-encrypted/indexdb"; const store = new SDK.Store({ name: "test", storage: IndexDB, password: Buffer.from("demoapp").toString("hex") }); const pluto = new SDK.Pluto(store, apollo); Migrations, schemas, queries and error handling have been moved to the SDK again but user's which were using the existing storages can just pass the indexDB pluto-encrypted storage and it will integrate with the new db schemas, migrations, etc
- Loading branch information
1 parent
6ebf48a
commit ce7669f
Showing
118 changed files
with
29,643 additions
and
10,362 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import { atom } from "jotai"; | ||
import { Domain } from "@atala/prism-wallet-sdk"; | ||
import SDK from "@atala/prism-wallet-sdk"; | ||
|
||
export const mnemonicsAtom = atom<Domain.MnemonicWordList | undefined>( | ||
export const mnemonicsAtom = atom<SDK.Domain.MnemonicWordList | undefined>( | ||
undefined | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
ce7669f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
JUnit