encodeKey method

  1. @override
String encodeKey(
  1. List<int> pubKey, {
  2. ADANetwork network = ADANetwork.mainnet,
  3. 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();
}