validatePubkeyAndRemovePrefix static method
Validate a public key byte list and remove prefix if present.
pubKeyBytes
: The public key byte list to validate and remove prefix from.
Returns the validated public key byte list without the prefix
Implementation
static List<int> validatePubkeyAndRemovePrefix(List<int> pubKeyBytes) {
final pubKeyObj = AddrKeyValidator.validateAndGetEd25519Key(pubKeyBytes);
return pubKeyObj.compressed.sublist(1);
}