refactor: helpers module with tests, added nacl wrapper with automatic safe buffer/uint8array conversion and erasure