oops, should return bytes
This commit is contained in:
parent
c81cb03ba7
commit
0f0e0f16b9
1 changed files with 1 additions and 1 deletions
|
|
@ -76,7 +76,7 @@ impl From<U256> for Secret {
|
|||
pub struct SharedSecret([u8; 32]);
|
||||
|
||||
impl SharedSecret {
|
||||
pub fn derive_key<T: Fn([u8; 32]) -> [u32; 8]>(self, deriver: T) -> [u32; 8] {
|
||||
pub fn derive_key<T: Fn([u8; 32]) -> [u8; 32]>(self, deriver: T) -> [u8; 32] {
|
||||
deriver(self.0)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue