In #752, Party was introduced to replace ElligatorSwiftParty. As part of the changes, shared_secret and shared_secret_with_hasher were updated to take Into<Party> to preserve backwards compatibility. These functions should probably just be taking Party instead of Into<Party> after ElligatorSwiftParty is removed in the next major version release.