Skip to content

joincivil/id-hub-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ID Hub example

yarn
yarn build
yarn start

Queries

Self signed credential (name = Alice):

mutation newMsg {
  saveNewMessage(raw: "eyJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NkstUiJ9.eyJpYXQiOjE1ODQ2MTkxMDQsInN1YiI6ImRpZDpldGhyOnJpbmtlYnk6MHgzNGU0YjRmMzUxMjIwMGU4NGVkZGIwNWMyNTMxMWI3ZjU4NGY3ODUzIiwidmMiOnsiQGNvbnRleHQiOlsiaHR0cHM6Ly93d3cudzMub3JnLzIwMTgvY3JlZGVudGlhbHMvdjEiXSwidHlwZSI6WyJWZXJpZmlhYmxlQ3JlZGVudGlhbCJdLCJjcmVkZW50aWFsU3ViamVjdCI6eyJuYW1lIjoiQWxpY2UifX0sImlzcyI6ImRpZDpldGhyOnJpbmtlYnk6MHgzNGU0YjRmMzUxMjIwMGU4NGVkZGIwNWMyNTMxMWI3ZjU4NGY3ODUzIn0.TxNVe3DaU9yqsA8q0BFdtHUsqPlb2FuwExFWktAVBMY3HNXDfxm3h9Q4aSno5xfyvVDZupg7EovEYCAtQ0BKQwA") {
    id
    type
    data
  }
}

Skill = Developer

mutation newMsg {
  saveNewMessage(raw: "eyJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NkstUiJ9.eyJpYXQiOjE1ODQ2MTkzNjIsInN1YiI6ImRpZDpldGhyOnJpbmtlYnk6MHgxYzM4NmQ1NTAyNTZiMTdkOTA4ZDY2NDM2MjQ3ZGJlMzUxYzQzZWRjIiwidmMiOnsiQGNvbnRleHQiOlsiaHR0cHM6Ly93d3cudzMub3JnLzIwMTgvY3JlZGVudGlhbHMvdjEiXSwidHlwZSI6WyJWZXJpZmlhYmxlQ3JlZGVudGlhbCJdLCJjcmVkZW50aWFsU3ViamVjdCI6eyJza2lsbCI6IkRldmVsb3BlciJ9fSw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BEbk1YY1gyUm9LMEpzYUs4c0ljSllscnBlb0dKeFRDMXhNdWw2N0lyVURyMWNYRVZyZGJ0V3h2Zmo5aGw0endRd0NDWTFFSXd1UlB4Z01RRSJdfSwiaXNzIjoiZGlkOmV0aHI6cmlua2VieToweDFjMzg2ZDU1MDI1NmIxN2Q5MDhkNjY0MzYyNDdkYmUzNTFjNDNlZGMifQ.HnZyQIqV9d2saNDo6a72jlplWuVGVLJe4ff30MIpr6bcgobW4gHEGnc-AXaPPOSH1ErYz2xor1oxq3TTWhyS7wE") {
    id
    type
    data
  }
}

Selective Disclosure Request

mutation newMsg {
  saveNewMessage(raw: "eyJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NkstUiJ9.eyJpYXQiOjE1ODQ2MzI5ODEsInR5cGUiOiJzZHIiLCJjbGFpbXMiOlt7ImlzcyI6W10sImVzc2VudGlhbCI6dHJ1ZSwiY2xhaW1UeXBlIjoibmFtZSIsInJlYXNvbiI6IldlIG5lZWQgdGhpcyB0byBjb21wbHkgd2l0aCBsb2NhbCBsYXcifV0sImlzcyI6ImRpZDpldGhyOnJpbmtlYnk6MHgxMTdmZDNkNjBlNDQyMjA2Yzc0ZmI4MGM5Y2YzY2FiN2UxYzkyNjY0In0.7PEmiZMlv8UXXNDcuLzQRsz0CL2U-T5tZCuRJhXuIC80nnjS0l44nMmqFQdRnINrw1Kg688Wv51mdKTvPifPrgE") {
    id
    type
    data
  }
}

Claims

query claims {
  claims {
    type
    value
    credential {
      issuer {did}
      subject {did}
    }
  }
}

About

Node implementation of an id-hub

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published