toStakingAddress method
Converts the public staking key to a staking address.
Implementation
String toStakingAddress({ADANetwork? network}) {
network ??= switch (coinConf.chainType) {
ChainType.mainnet => ADANetwork.mainnet,
ChainType.testnet => ADANetwork.testnetPreview,
};
return AdaShelleyStakingAddrEncoder().encodeKey(
pubSkKey.key.compressed,
network: network,
);
}