From 1250a61c4eab6a039940822e005b25e0061562c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20G=C3=B6ttgens?= Date: Fri, 29 Nov 2024 16:34:26 +0100 Subject: [PATCH] Add `hash(::EllCrvIso)` --- src/EllCrv/Isomorphisms.jl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/EllCrv/Isomorphisms.jl b/src/EllCrv/Isomorphisms.jl index 4cfc3be0f1..f663fb800b 100644 --- a/src/EllCrv/Isomorphisms.jl +++ b/src/EllCrv/Isomorphisms.jl @@ -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 + ################################################################################ #