MCPcopy Create free account
hub / github.com/BitVM/BitVM / validate_key

Method validate_key

bridge/src/client/cli/key_command.rs:190–192  ·  view source on GitHub ↗
(&self, key: &str)

Source from the content-addressed store, hash-verified

188 }
189
190 fn validate_key(&self, key: &str) -> bool {
191 key.len() == 64 && key.chars().all(|c| c.is_ascii_hexdigit())
192 }
193
194 // TODO: This is TBD. Verifying key validation is unclear at the moment.
195 // We'll add it once circuit design is finalized and we can run a Groth16 setup.

Callers 1

handle_commandMethod · 0.80

Calls 1

lenMethod · 0.80

Tested by

no test coverage detected