func (db *InMemoryDB) SetHostKey(key crypto.PrivKey, transaction ...interface{}) error {
	db.lock.Lock()
	defer db.lock.Unlock()
	hostkey, _ := crypto.MarshalPrivateKey(key)
	db.hostkey = hostkey
	return nil
}
// SetHostKey sets the host key
SetHostKey sets the host key
// SetHostKey sets the host key
func (db *InMemoryDB) SetHostKey(key crypto.PrivKey, transaction ...interface{}) error {
	db.lock.Lock()
	defer db.lock.Unlock()
	hostkey, _ := crypto.MarshalPrivateKey(key)
	db.hostkey = hostkey
	return nil
}
func ( db * InMemoryDB ) SetHostKey ( key crypto . PrivKey , transaction ... interface { } ) error { db . lock . Lock ( ) defer db . lock . Unlock ( ) hostkey , _ := crypto . MarshalPrivateKey ( key ) db . hostkey = hostkey return nil }
SetHostKey sets the host key
SetHostKey sets the host key