==================== Encrypted Data Decryption ==================== SECURITY: there is deliberately NO public decrypt endpoint. Transport encryption is one-directional — clients encrypt sensitive fields to the server's RSA public key and the authenticated config-update handlers (handleUpdateModelCo
(key string)
| 71 | |
| 72 | // isValidPrivateKey Validate private key format |
| 73 | func isValidPrivateKey(key string) bool { |
| 74 | // EVM private key: 64 hex characters (optional 0x prefix) |
| 75 | if len(key) == 64 || (len(key) == 66 && key[:2] == "0x") { |
| 76 | return true |
| 77 | } |
| 78 | // TODO: Add validation for other chains |
| 79 | return false |
| 80 | } |
nothing calls this directly
no outgoing calls
no test coverage detected