func (s *memRootKeyStore) RootKey(context.Context) (rootKey, id []byte, err error) {
	s.mu.Lock()
	defer s.mu.Unlock()
	if s.key == nil {
		newKey, err := randomBytes(24)
		if err != nil {
			return nil, nil, err
		}
		s.key = newKey
	}
	return s.key, []byte("0"), nil
}
// RootKey implements Store.RootKey by always returning the same root
// key.
RootKey implements Store.RootKey by always returning the same root
key.
// RootKey implements Store . RootKey by always returning the same root // key .
func (s *memRootKeyStore) RootKey(context.Context) (rootKey, id []byte, err error) {
	s.mu.Lock()
	defer s.mu.Unlock()
	if s.key == nil {
		newKey, err := randomBytes(24)
		if err != nil {
			return nil, nil, err
		}
		s.key = newKey
	}
	return s.key, []byte("0"), nil
}
func ( s * memRootKeyStore ) RootKey ( context . Context ) ( rootKey , id [ ] byte , err error ) { s . mu . Lock ( ) defer s . mu . Unlock ( ) if s . key == nil { newKey , err := randomBytes ( 24 ) if err != nil { return nil , nil , err } s . key = newKey } return s . key , [ ] byte ( " " ) , nil }
RootKey implements Store.RootKey by always returning the same root
key.
RootKey implements Store . RootKey by always returning the same root key .