* chore: use whitenoise app team and bundle id * chore: add apk commands * chore: rename package from sloth to whitenoise * docs: remove sloth word from readme and agents.md * chore: replace sloth texts with whitenoise * chore: remove unused error screen * docs: copy LICENSE file from whitenoise repo * chore: upgrade version to 0.3.0+15 so that android apk can replace old whitenoise ones * refactor: rename MyApp to WnApp * chore: use new staging bundle id * chore: rename org.parres to IPF * chore: remove .so file * fix: make android signer work after bundle id change * core: replace org.parres with dev.ipf for widgebtook * test: improve coverage
18 lines
351 B
Dart
18 lines
351 B
Dart
import 'package:whitenoise/src/rust/api/utils.dart' as utils_api;
|
|
|
|
String? npubFromHex(String hexPubkey) {
|
|
try {
|
|
return utils_api.npubFromHexPubkey(hexPubkey: hexPubkey);
|
|
} catch (_) {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
String? hexFromNpub(String npub) {
|
|
try {
|
|
return utils_api.hexPubkeyFromNpub(npub: npub);
|
|
} catch (_) {
|
|
return null;
|
|
}
|
|
}
|