text: // Copyright (c) 2016-2018 The Zcash developers
  // Copyright (c) 2020 The PIVX Developers
  // Copyright (c) 2020 The Rubus Developers
  
  // Distributed under the MIT software license, see the accompanying
  // file COPYING or http://www.opensource.org/licenses/mit-license.php.
  
  #ifndef RBX_KEY_IO_SAPLING_H
  #define RBX_KEY_IO_SAPLING_H
  
  #include "chainparams.h"
  #include "sapling/zip32.h"
  
  namespace KeyIO {
  
      std::string EncodePaymentAddress(const libzcash::PaymentAddress& zaddr);
      libzcash::PaymentAddress DecodePaymentAddress(const std::string& str);
      Optional<libzcash::SaplingPaymentAddress> DecodeSaplingPaymentAddress(const std::string& str);
      bool IsValidPaymentAddressString(const std::string& str);
  
      std::string EncodeViewingKey(const libzcash::ViewingKey& vk);
      libzcash::ViewingKey DecodeViewingKey(const std::string& str);
  
      std::string EncodeSpendingKey(const libzcash::SpendingKey& zkey);
      libzcash::SpendingKey DecodeSpendingKey(const std::string& str);
  }
  
  #endif //RBX_KEY_IO_SAPLING_H
  