Skip to content

Commit

Permalink
Add hash(::EllCrvIso)
Browse files Browse the repository at this point in the history
  • Loading branch information
lgoettgens committed Nov 29, 2024
1 parent f6cf0f2 commit 1250a61
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/EllCrv/Isomorphisms.jl
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,14 @@ function ==(f::EllCrvIso, g::EllCrvIso)
return f.data == g.data && Ef == Eg && base_field(Ef) == base_field(Eg)
end

function Base.hash(f::EllCrvIso, h::UInt)
Ef = domain(f)
h = hash(f.data, h)
h = hash(Ef, h)
h = hash(base_field(Ef), h)
return h
end


################################################################################
#
Expand Down

0 comments on commit 1250a61

Please sign in to comment.