Appearance
SkcPrivacyService
SkcPrivacyService
class provides an interface for interacting with a privacy service. It implements the following interfaces: Database
, Privacy Service
.
Creating Instances
new SkcPrivacyService( baseUrl: string
)
Creates a new instance of SkcPrivacyService
, enabling interaction with the CMS for data management and on-chain operations. It allows users to login, register assets, resolve asset details, retrieve recent records, and decrypt data.
Properties
SkcPrivacyService.baseUrl
⇒string
The base URL of the CMS.
Instance Methods
skcPrivacyService.login ( options: SkcPrivacyServiceConnectOptions
) ⇒ Promise<void>
Logs the user in by either providing an email and password or an API key.
skcPrivacyService.decrypt ( cipherText: string
, assetId: string
, assetType: string
)
Decrypts the given ciphertext for a specified asset.