encodeKey method
String
encodeKey(
- List<
int> pubKey, { - ADANetwork network = ADANetwork.mainnet,
- String? path,
- List<
int> ? chainCode, - List<
int> ? hdPathKey,
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 AddressConverterException if the provided HD path, chain code, or HD path key is invalid.
Implementation
@override
String encodeKey(
List<int> pubKey, {
ADANetwork network = ADANetwork.mainnet,
String? path,
List<int>? chainCode,
List<int>? hdPathKey,
}) {
return encodeKeyWithInfo(
pubKey,
network: network,
chainCode: chainCode,
hdPathKey: hdPathKey,
path: path,
).encode();
}