This repository has been archived by the owner on Dec 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add docs for wrapping and signing of verifiable documents
- Loading branch information
Showing
4 changed files
with
75 additions
and
24 deletions.
There are no files selected for viewing
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,40 @@ | ||
// Import everything except utils from @tradetrust-tt/tradetrust | ||
import { | ||
SchemaId, | ||
validateSchema, | ||
utils, | ||
type OpenAttestationDocument, | ||
type WrappedDocument, | ||
type SignedWrappedDocument, | ||
v2, | ||
v3, | ||
OpenAttestationDocument, | ||
SchemaId, | ||
SUPPORTED_SIGNING_ALGORITHM, | ||
validateSchema, | ||
obfuscateDocument, | ||
verifySignature, | ||
signDocument, | ||
SUPPORTED_SIGNING_ALGORITHM, | ||
getData, | ||
getData as getDataV2, | ||
isSchemaValidationError, | ||
wrapDocument as wrapDocumentV2, | ||
WrappedDocument, | ||
wrapDocuments as wrapDocumentsV2, | ||
__unsafe__use__it__at__your__own__risks__wrapDocument as wrapDocumentV3, | ||
wrapDocument as wrapDocumentV2, | ||
__unsafe__use__it__at__your__own__risks__wrapDocuments as wrapDocumentsV3, | ||
SignedWrappedDocument, | ||
__unsafe__use__it__at__your__own__risks__wrapDocument as wrapDocumentV3, | ||
} from '@tradetrust-tt/tradetrust' | ||
|
||
// Re-export everything | ||
export type { WrappedDocument, SignedWrappedDocument } | ||
export { | ||
SchemaId, | ||
validateSchema, | ||
utils, | ||
v2, | ||
v3, | ||
OpenAttestationDocument, | ||
obfuscateDocument, | ||
verifySignature, | ||
signDocument, | ||
SUPPORTED_SIGNING_ALGORITHM, | ||
getData, | ||
getDataV2, | ||
isSchemaValidationError, | ||
wrapDocumentV2, | ||
wrapDocumentV3, | ||
WrappedDocument, | ||
wrapDocumentsV2, | ||
wrapDocumentV2, | ||
wrapDocumentsV3, | ||
SignedWrappedDocument, | ||
wrapDocumentV3, | ||
v2, | ||
v3, | ||
SchemaId, | ||
SUPPORTED_SIGNING_ALGORITHM, | ||
} |
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