feat: rfc1 external_spec commands

This commit is contained in:
2025-05-23 07:00:17 +08:00
parent 6887d426ee
commit 86da1a5093

View File

@@ -251,6 +251,7 @@ struct ExternalSpecResponse: Codable {
var success: Bool
var agent: String
var specification: String
var commands: Array<String>
}
func stringify<T: Encodable>(_ value: T) -> String? {
@@ -460,7 +461,8 @@ func externalSpec() -> ExternalSpecResponse {
return ExternalSpecResponse(
success: true,
agent: "swift-secure-enclave-external-provider/2.0.0-alpha",
specification: "External/1.0.0-alpha"
specification: "External/1.0.0-alpha",
commands: ["external_public_key", "external_sign"]
)
}