DigitalSignature

DigitalSignature[]

represents a digital signature object generated by GenerateDigitalSignature.

Details

  • DigitalSignature[]["prop"] yields properties of the digital signature.
  • Possible properties for elliptic curves include:
  • "Type"type of signing algorithm
    "CurveName"elliptic curve used for calculating digital signature
    "HashingMethod"hashing method used
    "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 an Ethereum blockchain digital signature, additional properties include:
  • "RecoveryParameter"recovery parameter used for public key recovery
  • DigitalSignature[]["Properties"] gives a list of available properties.

Examples

open all close all

Basic Examples  (1)

Get a digital signature object by signing a message:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
In[3]:=
Click for copyable input
Out[3]=

Get a property of the digital signature object:

In[4]:=
Click for copyable input
Out[4]=
In[5]:=
Click for copyable input
Out[5]=

Get a list of available properties of this digital signature:

In[6]:=
Click for copyable input
Out[6]=

Scope  (2)

Applications  (2)

Introduced in 2019
(12.0)