Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Implemented by

Index

Methods

checkSig

  • checkSig(data: string, sig: string): Promise<boolean>

createKeyPair

  • createKeyPair(passPhrase: string): Promise<KeyPair>

decryptFields

  • decryptFields(fields: Map<string, string>, passwords?: Map<string, string>): Promise<Map<string, string>>

decryptFile

  • decryptFile(file: string, filedName: string, password?: string): Promise<string>
  • Decrypt file. Base64 string

    Parameters

    • file: string

      base64 encrypted data

    • filedName: string

      key of field for auto-generation password for decrypt

    • Optional password: string

      optional if you already have password for file. apply password instead auto-generation password.

    Returns Promise<string>

    decrypted file Base64 data.

decryptMessage

  • decryptMessage(senderPk: string, encrypted: string): Promise<string>

encryptFields

  • encryptFields(fields: Map<string, string>): Promise<Map<string, string>>

encryptFieldsWithPermissions

  • encryptFieldsWithPermissions(recipient: string, data: Map<string, AccessRight>): Promise<Map<string, string>>

encryptFile

  • encryptFile(file: string, fieldName: string): Promise<string>

encryptMessage

  • encryptMessage(recipientPk: string, message: string): Promise<string>

encryptPermissionsFields

  • encryptPermissionsFields(recipient: string, data: Map<string, AccessRight>): Promise<string>

generateMnemonicPhrase

  • generateMnemonicPhrase(): Promise<string>

getPublicKey

  • getPublicKey(): string

signMessage

  • signMessage(data: string): Promise<string>

Generated using TypeDoc