toAddress method
Converts the public address key to a Cardano Shelley address.
Implementation
String toAddress({ADANetwork? network}) {
network ??= switch (coinConf.chainType) {
ChainType.mainnet => ADANetwork.mainnet,
ChainType.testnet => ADANetwork.testnetPreview,
};
return AdaShelleyAddrEncoder().encodeKey(
pubAddrKey.key.compressed,
pubSkey: pubSkKey.key.compressed,
network: network,
);
}