Skip to content
Gung De Surya edited this page Jul 7, 2020 · 1 revision

Wallet

Wallet help you manage the wallet like encrypt or decrypt the users' passphrase

encryptPassphrase()

zoobc.Wallet.encryptPassphrase(passphrase, password, salt);

Parameters

  1. passphrase: passphrase to open the wallet
  2. password: the password to decrypt the seed later
  3. salt: (optional) a string to make encrypted seed more unpredictable

Return string of encrypted seed

Decrypt Seed

zoobc.Wallet.decryptPassphrase(encryptedSeed, password, salt);

Parameters

  1. encryptedSeed: seed that already encrypted with encryptedSeed() option
  2. password: the password to decrypt the seed later
  3. salt: (optional) a string to make encrypted seed more unpredictable

Return string of passphrase

Clone this wiki locally