SushiChain Crypto

A Flutter plugin for iOS and Android providing the base crypto functions for the SushiChain blockchain platform.

Features

  • generateKeyPair
  • generateNewWallet
  • generateWif
  • generateAddress
  • getWalletFromWif
  • getFullWalletFromWif
  • encryptWallet
  • decryptWallet

Installation

Add the dependency to your pubspec.yaml

dependencies:
  sushichain: ^0.0.2

Example

import 'package:dartz/dartz.dart';
import 'package:sushichain/network.dart';
import 'package:sushichain/wallet_factory.dart';

walletFactory.generateNewWallet(Network.testnet).fold(handleErrorHere,(basicWallet){
  // Do something with the basicWallet here
});

Libraries

basic_wallet
encrypted_wallet
full_wallet
keypair
model
network
sushichain
wallet_error