macaroons: use fast scrypt options in itest and unit tests

This commit is contained in:
Oliver Gugger
2020-01-17 14:23:42 +01:00
parent 466294ed4c
commit 847d27f8a6
4 changed files with 42 additions and 2 deletions

13
macaroons/security.go Normal file
View File

@ -0,0 +1,13 @@
// +build !rpctest
package macaroons
import "github.com/btcsuite/btcwallet/snacl"
var (
// Below are the default scrypt parameters that are used when creating
// the encryption key for the macaroon database with snacl.NewSecretKey.
scryptN = snacl.DefaultN
scryptR = snacl.DefaultR
scryptP = snacl.DefaultP
)