-
Notifications
You must be signed in to change notification settings - Fork 4
Wallet
Gung De Surya edited this page Jul 7, 2020
·
1 revision
Wallet help you manage the wallet like encrypt or decrypt the users' passphrase
zoobc.Wallet.encryptPassphrase(passphrase, password, salt);
Parameters
-
passphrase
: passphrase to open the wallet -
password
: the password to decrypt the seed later -
salt
: (optional) a string to make encrypted seed more unpredictable
Return
string
of encrypted seed
zoobc.Wallet.decryptPassphrase(encryptedSeed, password, salt);
Parameters
-
encryptedSeed
: seed that already encrypted withencryptedSeed()
option -
password
: the password to decrypt the seed later -
salt
: (optional) a string to make encrypted seed more unpredictable
Return
string
of passphrase