DigitalSignature
✖
DigitalSignature
Details
- Digital signature is used for verifying the authenticity of a message and is dependent on both the data being signed and the private key.
- Digital signatures can be created with GenerateDigitalSignature and GenerateFileSignature.
- DigitalSignature[…]["prop"] yields properties of the digital signature.
- The signing algorithm type is indicated by the "Type" property of the signature. Possible types include "RSA" and "EllipticCurve".
- Additional properties for "RSA" include:
-
"HashingMethod" hashing method "HashName" hash name used in padding "Padding" padding scheme "Signature" digital signature - Additional properties for "EllipticCurve" include:
-
"CurveName" elliptic curve used for calculating digital signature "HashingMethod" hashing method "SignatureType" mode of digital signature generation "R" r, first element of digital signature pair "S" s, second element of digital signature pair - For a Bitcoin blockchain digital signature, additional properties include:
-
"DER" digital signature in DER format - For Ethereum-based blockchain digital signatures, additional properties include:
-
"RecoveryParameter" recovery parameter used for public key recovery - DigitalSignature[…]["Parameters"] gives all the information contained in the object, as an association.
- DigitalSignature[…]["Properties"] gives a list of available properties.
- The DigitalSignature of an expr may be verified by using VerifyDigitalSignature.
- The DigitalSignature of a file may be verified by using VerifyFileSignature.
Examples
open allclose allBasic Examples (1)Summary of the most common use cases
Get a digital signature object by signing a message:
https://wolfram.com/xid/0fq6wv46mlvky-bj6se3
https://wolfram.com/xid/0fq6wv46mlvky-drkkh
https://wolfram.com/xid/0fq6wv46mlvky-nqm0y
Get a property of the digital signature object:
https://wolfram.com/xid/0fq6wv46mlvky-gmoaph
https://wolfram.com/xid/0fq6wv46mlvky-xycejf
Get a list of available properties of this digital signature:
https://wolfram.com/xid/0fq6wv46mlvky-dsa3rt
Scope (2)Survey of the scope of standard use cases
Cryptocurrencies (2)
Get the DER-encoded digital signature typically used in Bitcoin transactions:
https://wolfram.com/xid/0fq6wv46mlvky-06n2tp
https://wolfram.com/xid/0fq6wv46mlvky-ddtf9n
https://wolfram.com/xid/0fq6wv46mlvky-1ez1lm
https://wolfram.com/xid/0fq6wv46mlvky-w4y8yf
Get the recovery parameter used for public key recovery in the Ethereum network:
https://wolfram.com/xid/0fq6wv46mlvky-rycq84
https://wolfram.com/xid/0fq6wv46mlvky-cy5pxp
https://wolfram.com/xid/0fq6wv46mlvky-lp9h4z
https://wolfram.com/xid/0fq6wv46mlvky-z6tc0a
Applications (2)Sample problems that can be solved with this function
Generate a digital signature compatible with Bitcoin network requirements:
https://wolfram.com/xid/0fq6wv46mlvky-fodke1
https://wolfram.com/xid/0fq6wv46mlvky-evja4q
https://wolfram.com/xid/0fq6wv46mlvky-mv79he
https://wolfram.com/xid/0fq6wv46mlvky-djx2s6
Generate a digital signature compatible with Ethereum network requirements:
https://wolfram.com/xid/0fq6wv46mlvky-09xua
https://wolfram.com/xid/0fq6wv46mlvky-bmgzzl
https://wolfram.com/xid/0fq6wv46mlvky-cukpoo
https://wolfram.com/xid/0fq6wv46mlvky-dg0an7
Wolfram Research (2019), DigitalSignature, Wolfram Language function, https://reference.wolfram.com/language/ref/DigitalSignature.html (updated 2020).
Text
Wolfram Research (2019), DigitalSignature, Wolfram Language function, https://reference.wolfram.com/language/ref/DigitalSignature.html (updated 2020).
Wolfram Research (2019), DigitalSignature, Wolfram Language function, https://reference.wolfram.com/language/ref/DigitalSignature.html (updated 2020).
CMS
Wolfram Language. 2019. "DigitalSignature." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2020. https://reference.wolfram.com/language/ref/DigitalSignature.html.
Wolfram Language. 2019. "DigitalSignature." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2020. https://reference.wolfram.com/language/ref/DigitalSignature.html.
APA
Wolfram Language. (2019). DigitalSignature. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/DigitalSignature.html
Wolfram Language. (2019). DigitalSignature. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/DigitalSignature.html
BibTeX
@misc{reference.wolfram_2024_digitalsignature, author="Wolfram Research", title="{DigitalSignature}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/DigitalSignature.html}", note=[Accessed: 07-January-2025
]}
BibLaTeX
@online{reference.wolfram_2024_digitalsignature, organization={Wolfram Research}, title={DigitalSignature}, year={2020}, url={https://reference.wolfram.com/language/ref/DigitalSignature.html}, note=[Accessed: 07-January-2025
]}