rename `script` to `scriptEncoded` to better document fact that input script is expected to be base64 encoded utf-8 bytes.