encodeKey method

  1. @override
String encodeKey(
  1. List<int> pubKey, [
  2. Map<String, dynamic> kwargs = const {}
])
override

Encodes an Ada Byron Legacy address with the provided public key, chain code, and optional HD path information.

The pubKey parameter is the public key to be encoded. The optional kwargs parameter is a map of additional arguments, including:

  • "hd_path": A string or Bip32Path specifying the hierarchical deterministic (HD) path.
  • "chain_code": A bytes or Bip32ChainCode representing the chain code.
  • "hd_path_key": An for the HD path key (must be 32 bytes).

Returns a string representing the encoded Ada Byron Legacy address.

Throws an ArgumentException if the provided HD path, chain code, or HD path key is invalid.

Implementation

@override
String encodeKey(List<int> pubKey, [Map<String, dynamic> kwargs = const {}]) {
  return encodeKeyWithInfo(pubKey, kwargs).encode();
}