toJson method

Map<String, dynamic> toJson()

Converts the ExtendedKey instance to a JSON map.

Implementation

Map<String, dynamic> toJson() {
  return {
    'P2PKH': p2pkh,
    'P2SH': p2sh,
    'P2WPKH': p2wpkh,
    'P2WPKH_IN_P2SH': p2wpkhInP2sh,
    'P2WSH': p2wsh,
    'P2WSH_IN_P2SH': p2wshInP2sh,
  };
}