Expand description
Tools for dealing with yivi.
Modules§
- rs256sk_
encoding 🔒 - We encode the RS256 private key using the PEM-encoded PKCS #8 format
- rs256vk_
encoding 🔒 - We encode the RS256 public key using the PEM-encoded PKCS #8 format
Structs§
- Attribute
Request - https://pkg.go.dev/github.com/privacybydesign/irmago#AttributeRequest
- Attribute
Type Identifier - Identifier for a yivi attribute type, to us a string with three dots (‘.’).
- Credential
ToBe Issued - Known as
CredentialRequestin irmago. - Credential
Type Identifier - Identifier for a yivi credential type, to us a string with two dots (‘.’).
- Credentials
- Credentials (name and key) for a requestor or yivi server.
- Disclosed
Attribute - Disclosure of a single attribute
- Epoch
- Represents a Yivi epoch by its sequence number. The
0th epoch starts at 1970-01-01T00:00:00Z and each epoch lasts exactly $60 \cdot 60 \cdot 24 \cdot 7$ seconds (= 1 week). - Extended
Session Request - An extended session request, see:
- Next
Session Data - https://github.com/privacybydesign/irmago/blob/f9718c334af76a3ad2fa23019d17957878cd2032/requests.go#L139
- Remote
Error - Error type that may be part of a session result
- Requestor
Token - Identifier for a yivi session used in requestor endpoints
- Session
Request - A session request sent by a requestor to a yivi server
- Session
Result - Result of a Yivi session
Enums§
- Attribute
Proof Status - Proof status of a single yivi attribute
- LdContext
- Some JSON linked data contexts http://json-ld.org used by yivi, primarily to identify a
session’s type. Not to be confused with
SessionType. - Proof
Status - Proof status of an entire session
- Session
Type - Session type (a.k.a. ‘Actions’)
- Signing
Key - Private key used by a requestor or yivi server to sign their JWTs.
- Status
- Status of a yivi session
- Verifying
Key - Public key used by a requestor or yivi server to sign their JWTs.
Constants§
- REQUESTOR_
TOKEN_ 🔒REGEX - The regex pattern for a
RequestorToken - REQUESTOR_
TOKEN_ 🔒REGEX_ TLK - Thread local compiled version of
REQUESTOR_TOKEN_REGEX
Functions§
- with_
requestor_ 🔒token_ regex - Runs
fwith as argument a reference to a compiled REQUESTOR_TOKEN_REGEX that is cached thread locally.