UNPKG

@blockcerts/schemas

Version:
66 lines (65 loc) 2.83 kB
{ "$schema": "http://json-schema.org/draft-04/schema#", "title": "MerkleProof2019 schema", "description": "Allows an issuer to issue a Verifiable Credential on the blockchain and provide proof of inclusion in a blockchain transaction. This uses the 2019 Merkle Proof Signature Suite (https://w3c-dvcg.github.io/lds-merkle-proof-2019/)", "type": "object", "definitions": { "JsonLdType": { "description": "A type or an array of types defined in a JSON-LD context file.", "oneOf": [ { "type": "string" }, { "type": "array", "items": { "type": "string" } } ] }, "DateTime": { "description": "LD Proofs must express timestamps as strings compatible with ISO 8601 guidelines, including the time and a time zone indicator. It is recommended to publish all timestamps in UTC. Previous versions of Open Badges allowed Unix timestamps as integers. Open Badges v2.0 requires string ISO 8601 values with time zone indicators. For example, 2016-12-31T23:59:59+00:00 is a valid ISO 8601 timestamp. It contains the year, month, day, T separator, hour number 0-23, minute, optional seconds and decimal microsecond, and a time zone indicator (+/- an offset from UTC or the Z designator for UTC).", "type": "string" } }, "properties": { "type": { "$ref": "#/definitions/JsonLdType" }, "creator": { "type": "string" }, "created": { "$ref": "#/definitions/DateTime", "description": "Defined by `created` property of https://w3c-dvcg.github.io/ld-proofs/#dfn-created" }, "domain": { "type": "string", "format": "uri", "description": "Defined by `domain` property of https://w3c-dvcg.github.io/ld-proofs/#linked-data-proof-overview" }, "nonce": { "type": "string" }, "proofValue": { "type": "string", "description": "Defined by `proofValue` property of https://w3c-dvcg.github.io/ld-proofs/#dfn-proof-value. One of any number of valid representations of proof value generated by the Proof Algorithm." }, "proofPurpose": { "type": "string", "description": "Defined by `proofPurpose` property of https://w3c-dvcg.github.io/ld-proofs/#dfn-proofpurpose. The specific intent for the proof, the reason why an entity created it." }, "verificationMethod": { "type": "string", "description": "Defined by `verificationMethod` property of https://w3c-dvcg.github.io/ld-proofs/#dfn-verificationmethod. A set of parameters required to independently verify the proof, such as an identifier for a public/private key pair that would be used in the proof." } }, "required": [ "type", "proofPurpose", "verificationMethod", "created", "proofValue" ] }