Skip to content

Commit

Permalink
removing convert method on Vector{<:Group}
Browse files Browse the repository at this point in the history
  • Loading branch information
Janis Erdmanis committed May 22, 2023
1 parent f6f67a2 commit a900292
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "CryptoGroups"
uuid = "bc997328-bedd-407e-bcd3-5758e064a52d"
authors = ["Janis Erdmanis <[email protected]>"]
version = "0.3.3"
version = "0.3.4"

[deps]
CryptoUtils = "04afed74-ac16-11e9-37b6-1352e3e05830"
Expand Down
5 changes: 4 additions & 1 deletion src/groups.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit a900292

Please sign in to comment.