pub fn to_public(extended_secret: &[u8]) -> [u8; 32]
generate the public key associated with an extended secret key