func NewAccount(name string, passphrase []byte) *Account {
	uuid, err := uuid.NewRandom()
	if err != nil {
		panic(err)
	}
	privateKey, err := e2types.GenerateBLSPrivateKey()
	if err != nil {
		panic(err)
	}
	return &Account{
		id:         uuid,
		privateKey: privateKey,
		name:       name,
		passphrase: passphrase,
	}
}
NewAccount creates a new account.
package mock
import (
	"bytes"
	"context"
	"errors"
	"github.com/google/uuid"
	e2types "github.com/wealdtech/go-eth2-types/v2"
)
type Account struct {
	id         uuid.UUID
	name       string
	privateKey *e2types.BLSPrivateKey
	unlocked   bool
	passphrase []byte
}