trust: the signing half of publisher signatures
Moved from yet's internal/trust without changing behavior or file formats: KeyPair, GenerateKey, SaveKeyPair, LoadPrivateKey, ParsePrivateKey, LoadPublicKey, MarshalPublicKey, SignEd25519, VerifyEd25519, ExportPEM, ImportPEM, and the package signature as SignDigest. New: Sign and VerifyMessage, a detached minisign signature over any bytes and its check (returns the trusted comment; another key with a colliding ID fails), and KeyFromRef, a key pair from a core/secretref reference with error messages that never carry the secret. A golden vector (testdata/sign-vector.*) pins the output, and VerifySignature is tested against what SignDigest makes. For yabar's evidence signing (ADR-0037 there, owner decision Q-5 option A); yet keeps registry signing and its auto-sign key store. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
9395fadbf7
commit
e1495430c5
10 files changed
+586
-7
No files matched your search
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
untrusted comment: minisign encrypted secret key
|
||||
RWQAAEIyAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMIu3pReIO0jw8qjsUD5/2J9b2y+5BNJ45wLRkzgleRSUugHITToa6mGDGFfLcgDIs+wEX4vFIUfnrLqym+u2yLqBzAYgET+YAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
yabar evidence vector
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
untrusted comment:
|
||||
RWQwi7elF4g7SHc9svLZOCFGGEyXs7gZW6saVrYobxgEdJnDM9hIxHIlC+qxicazJFYu2E6TG3Qq62NTae3k0rDlomfkxxz8oQA=
|
||||
trusted comment: yabar evidence test-vector 00000000000000000000000000000000
|
||||
o0/jQwycdwDK6BrI5jc6N47P2ixexYe07twyQ587cJBWapfKNch5EmMgvvwR6thKci3Lg0dpuanBDFdVP9QcCw==
|
||||
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
untrusted comment: minisign public key: 483B8817A5B78B30
|
||||
RWQwi7elF4g7SGGDGFfLcgDIs+wEX4vFIUfnrLqym+u2yLqBzAYgET+Y
|
||||
Reference in new issue
Block a user