Skip to content

Instantly share code, notes, and snippets.

View elkattan's full-sized avatar
🏠
Working from home

Ahmed Elkattan elkattan

🏠
Working from home
View GitHub Profile
@elkattan
elkattan / dart_moralis_auth.dart
Last active January 10, 2023 20:10
Moralis wallet authentication using flutter and Parse SDK
import 'dart:typed_data';
import 'package:parse_server_sdk_flutter/parse_server_sdk.dart';
import 'package:web3dart/crypto.dart';
import 'package:web3dart/web3dart.dart';
final Wallet? wallet = Wallet(); // User wallet should be initialized
authenticate() async {
if (wallet == null) {
throw Exception('Wallet is not initialized');