pub fn is_gitmark_commit(commit: &str) -> boolExpand description
Whether commit is a git commit hash a git-mark trail accepts as a state:
40 lowercase hex characters (blocktrails/git-mark validateCommitHash),
or 64 for a repository using SHA-256 object names (and for an epoch Merkle
root this crate anchors in a commit’s place).
§Examples
use solid_pod_rs::blocktrail::is_gitmark_commit;
assert!(is_gitmark_commit("9adc596cfd1100333393a12f2f41b2d820f16d0b"));
assert!(!is_gitmark_commit("9ADC596CFD1100333393A12F2F41B2D820F16D0B"));
assert!(!is_gitmark_commit("9adc596c"));