Skip to content

Commit 7312781

Browse files
Mathew Luofacebook-github-bot
authored andcommitted
Sign shards with the signature of the whole schema
Reviewed By: ginfung Differential Revision: D51405974 fbshipit-source-id: 7c719d87798bd92e3dd1021755e3fc5378ad7a56
1 parent 4712bcc commit 7312781

File tree

1 file changed

+1
-1
lines changed
  • compiler/crates/signedsource/src

1 file changed

+1
-1
lines changed

compiler/crates/signedsource/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ lazy_static! {
1818
static ref RE: Regex = Regex::new("\x40generated (?:SignedSource<<([a-f0-9]{32})>>)").unwrap();
1919
}
2020

21-
fn hash(data: &str) -> String {
21+
pub fn hash(data: &str) -> String {
2222
let mut md5 = Md5::new();
2323
md5.update(data);
2424
hex::encode(md5.finalize())

0 commit comments

Comments
 (0)