Skip to content

Instantly share code, notes, and snippets.

View chrisDeFouRire's full-sized avatar

Chris Hartwig chrisDeFouRire

View GitHub Profile
@chrisDeFouRire
chrisDeFouRire / polygonID-debugging.md
Last active September 1, 2023 12:08
PoluygonID: Cannot parse claim debugging session

Adding some logging

I've added more logging around claim.go:170: coreClaim, err := schemaPkg.Process(ctx, c.loaderFactory(req.Schema), credentialType, vc, opts)

time=2023-09-01T03:59:23.476Z level=INFO msg=c.loaderFactory(req.Schema) !BADKEY="&{URL:https://ipfs.io CID:QmTkShmtAVtbkTvZV8HDEmpfG3KHPoLHkLPvH3upuSk9Kg}"
time=2023-09-01T03:59:23.476Z level=INFO msg=credentialType !BADKEY=urn:uuid:327bcc66-2a0c-41ca-9602-4beb19becaed
time=2023-09-01T03:59:23.476Z level=INFO msg=vc !BADKEY="{ID:http://localhost:3002/v1/credentials/ef770b97-487b-11ee-b401-5254b9bd8ca1 Context:[https://www.w3.org/2018/credentials/v1 https://schema.iden3.io/core/jsonld/iden3proofs.jsonld ipfs://QmWDHqomUmFYLTwqdVdMueUpGJgz4ttJhoALnHj4XKqjJo] Type:[VerifiableCredential country] Expiration:<nil> IssuanceDate:2023-09-01 03:59:23.080949411 +0000 UTC m=+13.832647952 CredentialSubject:map[country:TH id:did:polygonid:polygon:mumbai:2qNpRLUS1wXAsXxpQtcW6QFQdkP6KMDjWWvvryaXpe type:country] CredentialStatus:0xc000554ba0 Issuer:did:
@chrisDeFouRire
chrisDeFouRire / keybase.md
Created December 17, 2021 14:08
My keybase info

Keybase proof

I hereby claim:

  • I am chrisdefourire on github.
  • I am chrisdefourire (https://keybase.io/chrisdefourire) on keybase.
  • I have a public key ASDwc4sCled8UXmEq-Ni9VOwNxaD9yKzzZsXZyuhILkGCgo

To claim this, I am signing this object:

var (
// Tag is set by Gitlab's CI build process
Tag string
// Build is set by Gitlab's CI build process
Build string
)
router.HandleFunc("/ping", func(w http.ResponseWriter, req *http.Request) {
w.Header().Set("Content-type", "application/json")
w.WriteHeader(200)
image: docker:latest
services:
- docker:dind
stages:
- build
variables:
IMAGE: registry.gitlab.com/me/myproject
FROM golang:1.10-alpine3.7 as builder
ARG BUILD
ARG TAG
WORKDIR /go/src/app
RUN apk update && apk add curl && apk add git
RUN curl https://glide.sh/get | sh
COPY glide.yaml .
COPY glide.lock .
server {
listen 80;
server_name hire.chris-hartwig.com;
location /.well-known {
alias /home/hire/.well-known/;
}