CardanoShelley.fromCip1852Object constructor
CardanoShelley.fromCip1852Object(
- Bip44Base bip
Factory constructor to create a Cardano Shelley wallet from a Cip1852 Bip44 object.
Parameters:
bipObj
: The Cip1852 Bip44 object used to initialize the wallet.
Throws an ArgumentException
if the provided Bip object is not a Cip1852 instance.
Implementation
factory CardanoShelley.fromCip1852Object(Bip44Base bip) {
if (bip is! Cip1852) {
throw const ArgumentException(
"The Bip object shall be a Cip1852 instance");
}
return CardanoShelley(bip, __deriveStakingKeys(bip));
}