diff options
Diffstat (limited to 'src/credential/test_credential_own.sh')
-rwxr-xr-x | src/credential/test_credential_own.sh | 34 |
1 files changed, 19 insertions, 15 deletions
diff --git a/src/credential/test_credential_own.sh b/src/credential/test_credential_own.sh index a5f567511..d10d1b2ea 100755 --- a/src/credential/test_credential_own.sh +++ b/src/credential/test_credential_own.sh | |||
@@ -43,24 +43,28 @@ REG_STUD_ATTR="student" | |||
43 | END_ATTR="end" | 43 | END_ATTR="end" |
44 | 44 | ||
45 | TEST_CREDENTIAL="mygnunetcreds" | 45 | TEST_CREDENTIAL="mygnunetcreds" |
46 | # Test for forward search (0) StateU.student -> EOrg.end | 46 | # Own issuer side storage: |
47 | # gnunet-namestore -p -z eorg -a -n "@" -t DEL -V "$STATEU_KEY $STATE_STUD_ATTR <- $EORG_KEY $END_ATTR" -e 60m -c test_credential_lookup.conf | 47 | gnunet-credential --createIssuerSide --ego=epub --attribute="issside" --subject="$EORG_KEY asd" --ttl=5m |
48 | # gnunet-namestore -D -z eorg | 48 | |
49 | 49 | gnunet-namestore -D -z epub | |
50 | # Alternative Format that is being implemented at the moment: | 50 | |
51 | # Issuerside: | 51 | # Own subject side storage: |
52 | # gnunet-credential --create --ego=A --attribute="a" --subject="B.b" --where="is" | 52 | SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=epub --attribute="abcd" --subject="$EORG_KEY" --ttl=5m` |
53 | gnunet-credential --createIssuerSide --ego=epub --attribute="aasds" --subject="$EORG_KEY basd" --ttl=60m | 53 | gnunet-credential --createSubjectSide --ego=eorg --extension "$SIGNED" |
54 | SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=epub --attribute="asd" --subject="$EORG_KEY basd" --ttl=60m` | 54 | |
55 | echo $SIGNED | 55 | SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=epub --attribute="abcd" --subject="$EORG_KEY efghijklmno" --ttl=5m` |
56 | gnunet-credential --createSubjectSide --extension "$SIGNED" | 56 | gnunet-credential --createSubjectSide --ego=eorg --extension "$SIGNED" |
57 | # Subjectside: | 57 | |
58 | # X = gnunet-credential --create -e E -a "a" -s "B.b" -w ss | 58 | SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=epub --attribute="abcd" --subject="$EORG_KEY efghijklmno.pqr" --ttl=5m` |
59 | # gnunet-credential --add -e E -x X | 59 | gnunet-credential --createSubjectSide --ego=eorg --extension "$SIGNED" |
60 | |||
61 | SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=epub --attribute="abcd.stu" --subject="$EORG_KEY efghijklmno.pqr" --ttl=5m` | ||
62 | gnunet-credential --createSubjectSide --ego=eorg --extension "$SIGNED" | ||
63 | |||
64 | gnunet-namestore -D -z eorg | ||
60 | 65 | ||
61 | # (1) EPub assigns the attribute "discount" to all entities that have been assigned "preferred" by EOrg | 66 | # (1) EPub assigns the attribute "discount" to all entities that have been assigned "preferred" by EOrg |
62 | gnunet-namestore -p -z epub -a -n $DISC_ATTR -t ATTR -V "$EORG_KEY $PREF_ATTR" -e 5m -c test_credential_lookup.conf | 67 | gnunet-namestore -p -z epub -a -n $DISC_ATTR -t ATTR -V "$EORG_KEY $PREF_ATTR" -e 5m -c test_credential_lookup.conf |
63 | gnunet-namestore -D -z epub | ||
64 | 68 | ||
65 | # (2) EOrg assigns the attribute "preferred" to all entities that have been assigned "student" by StateU | 69 | # (2) EOrg assigns the attribute "preferred" to all entities that have been assigned "student" by StateU |
66 | gnunet-namestore -p -z eorg -a -n $PREF_ATTR -t ATTR -V "$STATEU_KEY $STATE_STUD_ATTR" -e 5m -c test_credential_lookup.conf | 70 | gnunet-namestore -p -z eorg -a -n $PREF_ATTR -t ATTR -V "$STATEU_KEY $STATE_STUD_ATTR" -e 5m -c test_credential_lookup.conf |