encodeSaplingExtendedSpendKey method
Encodes the Sapling extended spending key as a Bech32 string.
Implementation
String encodeSaplingExtendedSpendKey() {
final sapling = getSapling();
return ZCashEncodingUtils.encodeBech32Address(
bytes: sapling.privateKey.toBytes(),
encoding: Bech32Encodings.bech32,
hrp: config.coinConfig.hrpSaplingExtendedSpendingKey,
);
}