encodeKey method
String
encodeKey(
- List<
int> pubKey, { - ADANetwork network = ADANetwork.mainnet,
- List<
int> ? chainCode,
override
Encodes an Ada Byron address with the provided public key and chain code.
The pubKey parameter is the public key to be encoded.
The optional kwargs parameter is a map of additional arguments, where "chain_code" can be set to specify the chain code.
Returns a string representing the encoded Ada Byron address.
Throws an ArgumentException if the provided chain code is invalid.
Implementation
@override
String encodeKey(
List<int> pubKey, {
ADANetwork network = ADANetwork.mainnet,
List<int>? chainCode,
}) {
return encodeKeyWithInfo(
pubKey,
network: network,
chainCode: chainCode,
).encode();
}