← Back to Glossary

ScriptPubKey

The ScriptPubKey is a script which controls how bitcoin can be spent.

The ScriptPubKey is a script which controls how bitcoin can be spent. In english, most bitcoin scripts translate as follows: “In order to spend this bitcoin, one must produce a signature belonging to this public key…”, followed by a public key. More commonly, public key hashes are used instead of the public keys themselves, but the concept is the same.

A ScriptPubKey is often called a locking script because it locks the bitcoin until someone can provide an answer to unlock the bitcoin. The unlocking script, called the ScriptSig in legacy transactions and the Script Witness in SegWit transactions, is provided when this bitcoin is spent in a future transaction.

ScriptPubKey is a Bitcoin protocol specification that defines technical standards for how Bitcoin software operates. Onramp's Bitcoin glossary provides detailed educational resources on ScriptPubKey and other protocol-level concepts to help investors understand the technology underpinning their Bitcoin holdings.

Frequently Asked Questions

What is ScriptPubKey?

ScriptPubKey is a technical standard in the Bitcoin protocol that specifies how certain operations or data structures should be implemented. It helps ensure interoperability between different Bitcoin software implementations.

Why is ScriptPubKey important for Bitcoin?

ScriptPubKey improves Bitcoin's functionality, security, or efficiency. Technical standards like this ensure that all participants in the Bitcoin network follow consistent rules, maintaining network consensus.

How does ScriptPubKey affect Bitcoin investors?

While ScriptPubKey operates at the protocol level, Onramp ensures that clients benefit from these technical improvements through secure, up-to-date infrastructure for Bitcoin custody and transactions.

Multi-Institution Custody

Are you ready?

The best security available for your Bitcoin without the technical burden. It’s time to upgrade.

Sign up