[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: reclaim not storing value
From: |
accounts-gnunet |
Subject: |
Re: reclaim not storing value |
Date: |
Sat, 22 Oct 2022 12:59:57 +0100 |
I can confirm that setting and getting claims now works
when Im using git commit 1436e4266673df53f1a692e4c9c9a74d621b0a8e
I had been using the v0.17.6 tag before.
Presume a bug report is not needed, then.
I'll speak up if the hang / crash happens again with the current version.
Thanks.
On Sat, Oct 22, 2022 at 10:15:51AM +0000, Martin Schanzenbach wrote:
> A bug report where you can attach your logs is likely in order.
> Also the version you running would be good to know and maybe you can try
> git master, a lot has changed/been fixed lately.
>
> Br
>
> On 22.10.22 10:23, accounts-gnunet@holbrook.no wrote:
> > Sorry, my mistake. I DID use -A / --credentials. Still nothing.
> >
> > I tried again now from fresh namestore, and also from wiped
> > ~/.local/share/gnunet
> >
> > I can post logs, but would be good to know which ones I should grab.
> >
> > Thanks.
> >
> >
> > On Sat, Oct 22, 2022 at 12:31:13AM +0000, Martin Schanzenbach wrote:
> > > for example, this works for me:
> > >
> > > $ gnunet-reclaim -e test --credential-name=a --credential-type="JWT"
> > > --value="eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdWQiOiJhbnlvbmUiLCJmb28iOiJiYXIiLCJpYXQiOjE2NjYzNjY5NDQsImlzcyI6Im1ldG9vIiwibmJmIjowfQ.MU-XCuKq-fZlWEizrGHuBDG8AxduBXqJn91OeRizLiQ"
> > > $ gnunet-reclaim -e test --credentials
> > > a:
> > > ``eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdWQiOiJhbnlvbmUiLCJmb28iOiJiYXIiLCJpYXQiOjE2NjYzNjY5NDQsImlzcyI6Im1ldG9vIiwibmJmIjowfQ.MU-XCuKq-fZlWEizrGHuBDG8AxduBXqJn91OeRizLiQ''
> > > (JWT); ID: D4W230499QQR0FG1KHDVMMHA4KCETWRXA53GZZN5F5JRQVEE00TG
> > > Attributes:
> > > foo: bar
> > > $ gnunet-reclaim -e test --add="email" --value="foo"
> > > --credential-id=D4W230499QQR0FG1KHDVMMHA4KCETWRXA53GZZN5F5JRQVEE00TG
> > > $ gnunet-reclaim -e test -D
> > > email: ``foo'' in credential presentation
> > > `D4W230499QQR0FG1KHDVMMHA4KCETWRXA53GZZN5F5JRQVEE00TG' (STRING); ID:
> > > N2EZMB05XZVV6BNCJ96QQ20Z9H4XJ4ZQRKECD6Y5TYH4S3QZ4FH0
> > >
> > > BR
> > >
> > > On 21.10.22 16:52, accounts-gnunet@holbrook.no wrote:
> > > >
> > > > Reclaim credentials aren't returned after adding.
> > > >
> > > > Example: (the secret is bogus)
> > > >
> > > > [lash@alto ~]$ jwt encode -a "anyone" -i "metoo" -n 0 -P "foo=bar"
> > > > --secret
> > > > b64:MmMyNmI0NmI2OGZmYzY4ZmY5OWI0NTNjMWQzMDQxMzQxMzQyMmQ3MDY0ODNiZmEwZjk4YTVlODg2MjY2ZTdhZSAgLQo=
> > > >
> > > > eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdWQiOiJhbnlvbmUiLCJmb28iOiJiYXIiLCJpYXQiOjE2NjYzNjY5NDQsImlzcyI6Im1ldG9vIiwibmJmIjowfQ.MU-XCuKq-fZlWEizrGHuBDG8AxduBXqJn91OeRizLiQ
> > > > [lash@alto ~]$ jwt decode
> > > > eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdWQiOiJhbnlvbmUiLCJmb28iOiJiYXIiLCJpYXQiOjE2NjYzNjY5NDQsImlzcyI6Im1ldG9vIiwibmJmIjowfQ.MU-XCuKq-fZlWEizrGHuBDG8AxduBXqJn91OeRizLiQ
> > > >
> > > > Token header
> > > > ------------
> > > > {
> > > > "typ": "JWT",
> > > > "alg": "HS256"
> > > > }
> > > >
> > > > Token claims
> > > > ------------
> > > > {
> > > > "aud": "anyone",
> > > > "foo": "bar",
> > > > "iat": 1666366944,
> > > > "iss": "metoo",
> > > > "nbf": 0
> > > > }
> > > >
> > > > [...]
> > > >
> > > > melvin@debian:~/src/gnunet$ gnunet-identity -d
> > > > llljjj - 000G003C4GM194AXDJ67V1H5S5ASVJ3JY798ZEP04MKMBXQGV8KK1XFV40 -
> > > > ECDSA
> > > > melvin@debian:~/src/gnunet$ gnunet-reclaim -e "llljjj" \
> > > > --credential-name="name" \
> > > > --credential-type="JWT" \
> > > >
> > > > --value="eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdWQiOiJhbnlvbmUiLCJmb28iOiJiYXIiLCJpYXQiOjE2NjYzNjY3NDUsImlzcyI6Im1ldG9vIiwibmJmIjowfQ.pT7dTrI-jL-iyUzWPXUoQ-QpoE7B90Azk-PbE6P9qSA"
> > > >
> > > > melvin@debian:~/src/gnunet$ gnunet-reclaim -e llljjj -D
> > > > melvin@debian:~/src/gnunet$
> > > >
> > > >
> > > > ...
> > > >
> > > > Besides that, gnunet-reclaim -e xxx -D often ends up hanging and has to
> > > > be sigkilled.
> > > >
> > > >
> > > > ---
> > > >
> > > > I'm running in a pristine qemu on debian bullseye;
> > > >
> > > > melvin@debian:~/src/gnunet$ gnunet-bugreport
> > > > INFO: gnunet-bugreport 0.11.0
> > > > INFO:
> > > > INFO: Please submit the following
> > > > INFO: information with your bug report:
> > > > =========================================
> > > > INFO: OS : Linux
> > > > INFO: OS RELEASE : 5.10.0-19-amd64
> > > > INFO: HARDWARE : x86_64
> > > > INFO: awk : Found
> > > > INFO: gcc : gcc (Debian 10.2.1-6) 10.2.1 20210110
> > > > INFO: cc : cc (Debian 10.2.1-6) 10.2.1 20210110
> > > > WARNING: c++ : Not Found
> > > > INFO: clang :
> > > > INFO: clang++ :
> > > > WARNING: make : Not Found (unexpected result)
> > > > INFO: gmake : 4.3
> > > > INFO: autoconf : 2.69
> > > > INFO: automake : 1.16.3
> > > > INFO: libtool : 2.4.6
> > > > INFO: GNUnet : 0.17.6
> > > > INFO: git commit : 63147d301888e9f78b72c96b746a04f8a1769e04
> > > > INFO: libgcrypt : 1.8.8
> > > > INFO: mysql : Not Found
> > > > INFO: pkgconf : Not Found
> > > > INFO: pkg-config : 0.29.2
> > > > INFO: glib2 :
> > > > INFO: GTK2 : Not found
> > > > INFO: GTK3 : Not found
> > > > INFO: GTK4 :
> > > > INFO: GMP : libgmp-dev-2:6.2.1+dfsg-1+deb11u1.deb
> > > > INFO: libunistring : libunistring3-dev-0.9.10-4.deb
> > > > INFO: GNU gettext : 0.21
> > > > INFO: gettext : Found
> > > > INFO: libcurl : 7.74.0
> > > > INFO: libgnurl : Not found
> > > > WARNING: libgnurl or libcurl : Not found
> > > > INFO: libmicrohttpd : 97200
> > > > bugreport-glpk_check.c:1:10: fatal error: glpk.h: No such file or
> > > > directory
> > > > 1 | #include <glpk.h>
> > > > | ^~~~~~~~
> > > > compilation terminated.
> > > > /home/melvin/src/gnunet/build/usr/local/bin/gnunet-bugreport: 1:
> > > > ./bugreport-glpk_check.c.bin: not found
> > > > INFO: GNU GLPK :
> > > > INFO: GnuTLS : 3.7.1
> > > > =========================================
> > > >
> > >
> > >
>
>