!CnJOKhVeFQDJJFlIls:57north.org.uk

Elixir

456 Members
Unofficial room for chatter about the Elixir language. This channel is publicly logged.67 Servers

Load older messages


SenderMessageTime
13 Jun 2021
@bossbigbigboss002:matrix.orgBoss joined the room.06:44:52
@soapsudsxx:matrix.orgsoapsudsxx joined the room.17:53:39
15 Jun 2021
@tinystar:matrix.orgtinystar joined the room.05:45:01
@numkem:matrix.orgnumkem I was wondering if what would be the proper way to manually parse a tzdata file in order to generate the .ets file for the tzdata library. I'm on nixos and I can't rely on the auto-downloader. 14:49:14
@tinystar:matrix.orgtinystarDoes anyone have a good setup for auto formatting .eex files?20:34:47
16 Jun 2021
@tcit:matrix.tcit.frtcit numkem: you may use https://github.com/mathieuprog/tz instead of tzdata 06:10:01
@alex0112:matrix.orgalex0112 set a profile picture.16:46:19
17 Jun 2021
@numkem:matrix.orgnumkem
In reply to @tcit:matrix.tcit.fr
numkem: you may use https://github.com/mathieuprog/tz instead of tzdata
I tried it and it worked great! Thank you!
01:29:48
22 Jun 2021
@MarqSven:matrix.orgMarqSvenDoes anybody know how i can generate a public and private key in elixir? I know there is the erlang public_key app but i don't get it to work18:01:19
@MarqSven:matrix.orgMarqSven

I tried it with these arguments

:public_key.generate_key(ecParams: {:namedCurve,:prime256v1})

But that is not accepted

18:03:02
@croeso:vepsian.westeurope.cloudapp.azure.comcroesoit doesn't seem you need ecParams, but that is not a problem18:16:11
@croeso:vepsian.westeurope.cloudapp.azure.comcroesoIf you look at public_key application there is only a number of curves supported18:16:56
@croeso:vepsian.westeurope.cloudapp.azure.comcroesoFor instance x44818:17:07
@croeso:vepsian.westeurope.cloudapp.azure.comcroesoall comes down to clauses of pubkey_cert_records:namedCurves18:18:03
@croeso:vepsian.westeurope.cloudapp.azure.comcroesoit might be that using ECParameters record could solve the issue, but I haven't tried18:25:17
@MarqSven:matrix.orgMarqSveni found a package that abstract away this https://hex.pm/packages/ed2551918:31:25
@MarqSven:matrix.orgMarqSvenWith this i was able to solve my problem18:31:36
@hubert:uhoreg.cauhoreg Looks like I'm a bit late to the party, but I used erlang's crypto module. e.g. {pub, priv} = :crypto.generate_key(:eddsa, :ed25519) 18:36:11
@hubert:uhoreg.cauhoreg * Looks like I'm a bit late to the party, but I used erlang's crypto module. e.g. {pub, priv} = :crypto.generate_key(:eddsa, :ed25519) 18:36:37
@MarqSven:matrix.orgMarqSventhis would work without third party thanks, i will try that19:54:53
@MarqSven:matrix.orgMarqSven The sign function should be :crypto.sign(:eddsa,:sha512,message,private_key)? 20:14:09
@MarqSven:matrix.orgMarqSven
In reply to @hubert:uhoreg.ca
Looks like I'm a bit late to the party, but I used erlang's crypto module. e.g. {pub, priv} = :crypto.generate_key(:eddsa, :ed25519)
* The sign function should be :crypto.sign(:eddsa,:sha512,message,private_key)?
20:14:33
@MarqSven:matrix.orgMarqSvenbecause i get an argument error there.20:20:14
@hubert:uhoreg.cauhoreg I'm using :crypto.sign(:eddsa, :none, msg, [key, :ed25519]) and :crypto.verify(:eddsa, :none, msg, raw_sig, [key, :ed25519]) 20:24:07
@MarqSven:matrix.orgMarqSventhanks the last argument was missing the eddsa options20:25:56
@MarqSven:matrix.orgMarqSvenbut in the docs http://erlang.org/doc/man/crypto.html#sign-4 these are optional20:26:25
@MarqSven:matrix.orgMarqSventhe Key argument20:26:45
@MarqSven:matrix.orgMarqSvenor is the | not the same as in elixir typedocs?20:27:08
@MarqSven:matrix.orgMarqSvenah i see this is differnt from elixir. 20:28:05
@hubert:uhoreg.cauhoregYeah, I seem to remember getting confused when reading those docs too.20:36:46

There are no newer messages yet.


Back to Room List