func ResetLocalKeyStore() {
	localKey = &LocalKeyStore{
		isSet:     false,
		private:   nil,
		public:    nil,
		nodeID:    nil,
		nodeNonce: nil,
	}
}
ResetLocalKeyStore FOR UNIT TEST, DO NOT USE IT.
package kms
import (
	"errors"
	"sync"
	"github.com/SQLess/SQLess/crypto/asymmetric"
	"github.com/SQLess/SQLess/crypto/hash"
	mine "github.com/SQLess/SQLess/pow/cpuminer"
	"github.com/SQLess/SQLess/proto"
)
type LocalKeyStore struct {
	isSet     bool
	private   *asymmetric.PrivateKey
	public    *asymmetric.PublicKey
	nodeID    []byte
	nodeNonce *mine.Uint256
	sync.RWMutex
}
var (
	localKey *LocalKeyStore
	once     sync.Once
)
var (
	ErrNilField = errors.New("local field is nil")
)
func init() {
	initLocalKeyStore()
}
func initLocalKeyStore() {
	once.Do(func() {
		localKey = &LocalKeyStore{
			isSet:     false,
			private:   nil,
			public:    nil,
			nodeID:    nil,
			nodeNonce: nil,
		}
	})
}