Signatures
API Contracts supports optional RSA-SHA256 signatures.
Signature Envelope
Section titled “Signature Envelope”{ "signature": { "algorithm": "RSA-SHA256", "publicKeyId": "pine-2026", "value": "<base64>" }}Enabling
Section titled “Enabling”<PropertyGroup> <AISchemaSign>true</AISchemaSign> <AISchemaSigningPrivateKey>keys/signing.pem</AISchemaSigningPrivateKey></PropertyGroup>Key Management
Section titled “Key Management”# Generate key pairopenssl genrsa -out signing.pem 2048openssl rsa -in signing.pem -pubout -out signing.pub.pemVerification
Section titled “Verification”using ApiContracts.Verification;
bool valid = SchemaVerifier.VerifySignature(data, signatureBase64, publicKeyPem);string sig = SchemaVerifier.SignData(data, privateKeyPem);