B.2.6. Signing a Request Using ed25519
B.2.6. Signing a Request Using ed25519
This example covers portions of the test-request message using the Ed25519 algorithm and the key test-key-ed25519.
The corresponding signature base is:
NOTE: '' line wrapping per RFC 8792
"date": Tue, 20 Apr 2021 02:07:55 GMT
"@method": POST
"@path": /foo
"@authority": example.com
"content-type": application/json
"content-length": 18
"@signature-params": ("date" "@method" "@path" "@authority"
"content-type" "content-length");created=1618884473
;keyid="test-key-ed25519"
This results in the following Signature-Input and Signature header fields being added to the message under the label sig-b26:
NOTE: '' line wrapping per RFC 8792
Signature-Input: sig-b26=("date" "@method" "@path" "@authority"
"content-type" "content-length");created=1618884473
;keyid="test-key-ed25519"
Signature: sig-b26=:wqcAqbmYJ2ji2glfAMaRy4gruYYnx2nEFN2HN6jrnDnQCK1
u02Gb04v9EDgwUPiu4A0w6vuQv5lIp5WPpBKRCw==: