ADAByronAddress.legacy constructor
ADAByronAddress.legacy({})
Factory constructor to create a legacy ADAByronAddress instance.
Implementation
factory ADAByronAddress.legacy(
{required List<int> publicKey,
required List<int> chaincode,
required List<int> hdPathKey,
required String hdPath,
ADANetwork network = ADANetwork.mainnet}) {
final encode = AdaByronLegacyAddrEncoder().encodeKeyWithInfo(publicKey, {
'net_tag': network,
'chain_code': chaincode,
'hd_path': hdPath,
'hd_path_key': hdPathKey
});
return ADAByronAddress._(encode.encode(), encode, network);
}