implement https://github.com/cashubtc/nuts/pull/366 for nutshell
implement cashubtc/nuts#366 for nutshell