higher level wrapper over bcoin