B.2.6. Firma di una richiesta con ed25519 (Signing a Request Using ed25519)
B.2.6. Firma di una richiesta con ed25519 (Signing a Request Using ed25519)
Questo esempio copre porzioni del messaggio test-request usando l'algoritmo Ed25519 e la chiave test-key-ed25519.
La corrispondente base della firma è:
NOTA: a capo con '' secondo 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"
Ne consegue che al messaggio vengono aggiunti i seguenti campi Signature-Input e Signature con l'etichetta sig-b26:
NOTA: a capo con '' secondo 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==: