encodeSeed static method
This method encodes a seed (entropy) into a Ripple address using the specified encoding type.
Implementation
static String encodeSeed(List<int> entropy, XRPKeyAlgorithm encodingType) {
/// Check if the entropy length matches the expected seed length.
if (entropy.length != seedLength) {
throw const XRPLAddressCodecException(
'Entropy must have length $seedLength');
}
/// Get the appropriate prefix for the specified encoding type.
final prefix = _algorithmSeedPrefix[encodingType]![0];
/// Encode the entropy with the prefix and return the resulting Ripple address.
return _encode(entropy, prefix, seedLength);
}