getSapling method

Zip32Sapling getSapling()

Returns the Sapling ZIP32 component, or throws if missing.

Implementation

Zip32Sapling getSapling() {
  final sapling = this.sapling;
  if (sapling == null) throw ZCashKeyError("Missing Sapling key.");
  return sapling;
}