Is there a maximum size of a scriptSig/scriptPubKey?


Find out what is the maximum email size limit for emails & file attachments sent to popular email account providers, such as Gmail,, Yahoo and others.

Why is there a maximum email size limit

Mainly for security reasons, all email server providers limit the maximum email size that an email account can receive. Otherwise, if there would be no maximum email size limit, the email server would risk to be bombarded with very large emails, causing it to cease working properly.

Some free email address providers also enforce commercial limitations on the email size: the free account gets a low maximum email size limit, but you can increase the maximum limit by upgrading to a paid account.

What happens when you hit the maximum email size limit?

Obviously, if you send an email that exceeds the maximum email size limit of the recipient’s email provider, your email will bounce off and you will receive an email error back in your mailbox....

0 0

So, I actually went and tested this. I found that in the editor, and in Windows builds, this breaks at a 1MB string. Oddly enough, on Android, it juts goes up till it crashes, but then every time I try to run it again, it crashes immediately.

using UnityEngine; using System.Collections;

public class PPDump : MonoBehaviour {

public int length; public string original = "x"; string str; public int count; public bool run; void Start() { count = 0; length = 0; str = original; } void OnGUI() { GUILayout.Label("Length: " + length); } void Update () { if(run) { str += str; length += str.Length; PlayerPrefs.SetString("save " + count, str); if(PlayerPrefs.GetString("save " + count) != str) { Debug.Log("Broken"); run = false; } count++; } }...
0 0
BIP: 18 Title: hashScriptCheck Author: Luke Dashjr Status: Draft Type: Standards Track Created: 2012-01-27


This BIP modifies the basic format of transaction inputs and outputs, replacing the current scriptSig and scriptPubKey (scripts executed to validate a transaction) with new contents: dataSig, scriptCheck, and hashScriptCheck.


The purpose of pay-to-script-hash is to move the responsibility for supplying the conditions to redeem a transaction from the sender of the funds to the redeemer.

The benefit is allowing a sender to fund any arbitrary transaction, no matter how complicated, using a fixed-length 20-byte hash that is short enough to scan from a QR code or easily copied and pasted.


scriptSig and scriptPubKey are hereby deemed to be deprecated. Bitcoin-compatible clients MUST still continue to support them for compatibility, but it should not be used for any new transaction types. Services...

0 0