Generate the private key
Use GenerateAsymmetricKeyPair to create a private key to be used for sending an encrypted message:
![](Files/CreateAndVerifyACryptographicDigitalSignature.en/1.png)
Sign the message
Create the message:
Use GenerateDigitalSignature to sign the message with the private key:
![](Files/CreateAndVerifyACryptographicDigitalSignature.en/2.png)
- The created message uses the text from the Bitcoin Genesis Block, otherwise known as “Block Zero”.
Verify the signature
Use VerifyDigitalSignature to verify the signature with the public key:
![](Files/CreateAndVerifyACryptographicDigitalSignature.en/3.png)