Wallet
ConfidentialWallet Contract
The ConfidentialWallet
contract is a key part of the NotVault SDK which is responsible for confidential management of keys, files, credentials, and value storage. Let's dive into each function present in this contract:
Key Management Functions
registerKeys: This function associates the sender's Ethereum address with their public key, encrypted private key, encrypted secret, contact ID, and an encrypted contact ID.
getPublicKey: This function returns the public key associated with a given Ethereum address.
File Index Management Functions
getFileIndex: Returns the file index associated with a given Ethereum address.
setFileIndex: This function allows the sender to set the file index associated with their Ethereum address.
Credential Management Functions
getCredentialIndex: Returns the credential index associated with a given Ethereum address.
setCredentialIndex: This function allows the sender to set the credential index associated with their Ethereum address.
getCredentialStatus: Returns the status of a specific credential for a given Ethereum address.
setCredentialStatus: This function allows the sender to set the status of a specific credential associated with their Ethereum address.
Value Store Management Functions
getValue: Returns the value associated with a specific key for a given Ethereum address.
setValue: This function allows the sender to set a value for a specific key associated with their Ethereum address.
Last updated