diff options
Diffstat (limited to 'src/protocol.rs')
-rw-r--r-- | src/protocol.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/protocol.rs b/src/protocol.rs index a52c377..e6bc0f3 100644 --- a/src/protocol.rs +++ b/src/protocol.rs @@ -130,7 +130,8 @@ fn test_bsxii_continued() { assert_eq!(a, c); } -fn make_discovery_key(key: &[u8]) -> Vec<u8> { +// TODO: move to lib.rs? +pub fn make_discovery_key(key: &[u8]) -> Vec<u8> { // calculate discovery key let mut discovery_key = [0; 32]; let mut hash = Blake2b::new_keyed(32, key); |