Skip to content

Instantly share code, notes, and snippets.

View edsilv's full-sized avatar

Edward Silverton edsilv

View GitHub Profile

🔐 How Verifiable Credentials and did:web Work in This Project

What is a Verifiable Credential?

A W3C Verifiable Credential (VC) is a tamper-proof digital certificate that says:

"This information came from us (Brighton) and hasn't been changed."

It is digitally signed using a cryptographic key associated with a Decentralized Identifier (DID) — in our case, a did:web that lives at a domain we control (e.g. https://brighton-textiles.org/.well-known/did.json).


Exhibit Source-Available Licence Agreement

This agreement (“Licence”) governs the use of the Licensed Software and is between Mnemoscene Ltd (“Licensor”) and the institution or individual accessing or using the Licensed Software (“Licensee”).

By accessing or using the Licensed Software, the Licensee agrees to the terms below.


1. Licence Grant

@edsilv
edsilv / presentation4.json
Created September 20, 2023 13:53
presentation4.json
{
"@context": "http://iiif.io/api/presentation/4/context.json",
"id": "https://example.org/iiif/3d/manifest",
"type": "Manifest",
"label": {
"en": ["I am 3D"]
},
"behavior": ["some", "new", "behaviors", "probably"],
"items": [{
"id": "https://example.org/iiif/scene1",
@edsilv
edsilv / uv-iiif-content-state-example.md
Created September 15, 2023 09:57
Universal Viewer IIIF Content State Example
@edsilv
edsilv / publish-uv.md
Last active May 26, 2023 06:54
Publish UV
git checkout main
git pull origin main
npm version patch
git push origin main v0.0.0 # <- the tag
@edsilv
edsilv / ipfs-projects.md
Last active September 13, 2022 09:15
IPFS Projects by @edsilv
@edsilv
edsilv / annotations.json
Created August 2, 2022 16:37
Exhibit Annotations
{
"softwareVersion":"2.0.0",
"duplicatedFrom":null,
"access":"public",
"publicId":"Zmtdg3cwREXzNGCuHgmm",
"author":"Ed Silverton",
"rights":"",
"description":"<p>An Exhibit about the Greek God of wine and pleasure.</p>",
"title":"Dionysus",
"modified":{
@edsilv
edsilv / wunder-der-verebung.json
Created June 1, 2022 12:45
IIIF Discovery Test Annotation
{
"type": "Annotation",
"motivation": ["contentState"],
"target": {
"id": "https://iiif.wellcomecollection.org/presentation/b18035723/canvases/b18035723_0022.JP2#xywh=1156,1585,501,544",
"type": "Canvas",
"partOf": [
{
"id": "https://iiif.wellcomecollection.org/presentation/v2/b18035723",
"type": "Manifest"
@edsilv
edsilv / SVGIconToggleGroup.tsx
Created December 18, 2021 16:33
SVGIconToggleGroup
import React from 'react';
import { styled } from '@stitches/react';
import { violet, blackA, mauve } from '@radix-ui/colors';
// import { TextAlignLeftIcon, TextAlignCenterIcon, TextAlignRightIcon } from '@radix-ui/react-icons';
import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
const StyledToggleGroup = styled(ToggleGroupPrimitive.Root, {
display: 'inline-flex',
backgroundColor: mauve.mauve6,
borderRadius: 4,