← Back to Glossary

DER Format

The Distinguished Encoding Rules (DER) format is a defined standard which Bitcoin uses to encode ECDSA signatures.

The Distinguished Encoding Rules (DER) format is a defined standard which Bitcoin uses to encode ECDSA signatures. A signature consists of a random number called an r value, and the signature itself, called the _s_ value. A typical Bitcoin signature is 71 bytes long, as a one byte sighash flag is appended to the DER signature, and these bytes are represented in hexadecimal format.

DER format begins with a prefix byte of 0x30, followed by the length of the signature. Next comes an 0x02 byte followed by the length of the r value, followed by the r value itself. Finally, an 0x02, the length of the s value, and the s value are added.

For both r and s values, if the first byte is higher than 0x80, an additional 0x00 byte is prepended to the value. So, while r and s values are both 32 bytes long, they occasionally take up 33 bytes in DER format.

DER Format is a cryptographic or data encoding concept that underpins Bitcoin's security and data integrity. Onramp's Bitcoin glossary explains DER Format and other cryptographic foundations to help investors understand the technology securing their digital assets.

Frequently Asked Questions

What is DER Format?

DER Format is a cryptographic or encoding standard used in computer science and digital security. In Bitcoin, it plays a role in securing transactions, keys, or data structures.

Why is DER Format important for Bitcoin?

DER Format contributes to Bitcoin's security model by ensuring data integrity and authenticity. Cryptographic foundations like DER Format make Bitcoin's $1+ trillion network resistant to fraud and tampering.

Does Onramp leverage DER Format for security?

Onramp's infrastructure relies on proven cryptographic standards including concepts related to DER Format. Onramp's multi-institution custody ensures that client Bitcoin is protected by multiple layers of cryptographic security.

Multi-Institution Custody

Are you ready?

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

Sign up