From a900292f2a8557a839ed770174a01d6aeb56334b Mon Sep 17 00:00:00 2001 From: Janis Erdmanis Date: Tue, 23 May 2023 01:07:47 +0300 Subject: [PATCH] removing convert method on Vector{<:Group} --- Project.toml | 2 +- src/groups.jl | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Project.toml b/Project.toml index c73bf28..8098e1c 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "CryptoGroups" uuid = "bc997328-bedd-407e-bcd3-5758e064a52d" authors = ["Janis Erdmanis "] -version = "0.3.3" +version = "0.3.4" [deps] CryptoUtils = "04afed74-ac16-11e9-37b6-1352e3e05830" diff --git a/src/groups.jl b/src/groups.jl index 820440d..dfed3a6 100644 --- a/src/groups.jl +++ b/src/groups.jl @@ -16,7 +16,10 @@ import Base./ name(x::G) where G <: Group = name(G) -Base.convert(::Type{Vector{G}}, x::Vector) where G <: Group = G[ G <| i for i in x] +#Base.convert(::Type{Vector{G}}, x::Vector) where G <: Group = G[ G <| i for i in x] +#Base.convert(::Type{Vector{G}}, x::Vector) where G <: Group = G[convert(G, i) for i in x] +#Base.convert(::Type{Vector{G}}, x::Vector) where G <: Group = G[] + Base.rand(prg::PRG, ::Type{G}, N::Integer; nr::Integer = 0) where G <: Group = Vector{G} <| rand(prg, spec(G), N; nr)