func Upgrade(b bucket.Bucket) bucket.Bucket { key := secretkey.New() return bucket.NewRecoverableBucket( bucket.NewEncryptedBucket(b, key), PromptLog, ) }
func upgradeBucket(b bucket.Bucket, key *secretkey.Key) bucket.Bucket { return bucket.NewRecoverableBucket(bucket.NewEncryptedBucket(b, key), plog) }