encodeExtendedSpendKey method
Encodes the Sapling extended spending key as a Bech32 string.
Implementation
String encodeExtendedSpendKey(ZIP32CoinConfig config) {
return ZcashEncodingUtils.encodeBech32Address(
bytes: privateKey.toBytes(),
encoding: Bech32Encodings.bech32,
hrp: config.hrpSaplingExtendedSpendingKey,
);
}