crypto: allow to provide non-default scrypt parameters

This commit is contained in:
Anna Shaleva 2021-06-04 14:27:22 +03:00
parent 61dfca346c
commit 50296975e2
24 changed files with 59 additions and 58 deletions

View file

@ -621,7 +621,7 @@ func TestSignAndPushP2PNotaryRequest(t *testing.T) {
w, err := wallet.NewWalletFromFile(notaryPath)
require.NoError(t, err)
ntr := w.Accounts[0]
err = ntr.Decrypt(notaryPass)
err = ntr.Decrypt(notaryPass, w.Scrypt)
require.NoError(t, err)
req.FallbackTransaction.Scripts[0] = transaction.Witness{
InvocationScript: append([]byte{byte(opcode.PUSHDATA1), 64}, ntr.PrivateKey().SignHashable(uint32(testchain.Network()), req.FallbackTransaction)...),