validateAndHashKey method
Implementation
List<int> validateAndHashKey(List<int> pubKey) {
/// Validate and process the public key as a Secp256k1 key.
final IPublicKey pubKeyObj = AddrKeyValidator.validateAndGetSecp256k1Key(
pubKey,
);
/// Generate the script signature from the public key.
return _P2SHAddrUtils.addScriptSig(pubKeyObj);
}