func (db *InMemoryDB) GetHostKey(transaction ...interface{}) (crypto.PrivKey, error) {
	db.lock.Lock()
	defer db.lock.Unlock()
	return crypto.UnmarshalPrivateKey(db.hostkey)
}
// GetHostKey gets the host key
GetHostKey gets the host key
// GetHostKey gets the host key
func (db *InMemoryDB) GetHostKey(transaction ...interface{}) (crypto.PrivKey, error) {
	db.lock.Lock()
	defer db.lock.Unlock()
	return crypto.UnmarshalPrivateKey(db.hostkey)
}
func ( db * InMemoryDB ) GetHostKey ( transaction ... interface { } ) ( crypto . PrivKey , error ) { db . lock . Lock ( ) defer db . lock . Unlock ( ) return crypto . UnmarshalPrivateKey ( db . hostkey ) }
GetHostKey gets the host key
GetHostKey gets the host key