Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
157 lines (124 sloc) 7.43 KB

Resource Integrity Proofs

Cryptographic hyperlinking provides discoverability, integrity, and scheme agility

Contributors: Ganesh Annan, Manu Sporny, Dave Longley, and David Lehn


Currently, the Web provides a simple yet powerful mechanism for the dissemination of information via hyperlinks. Unfortunately, there is no generalized mechanism that enables verifying that a fetched resource has been delivered without unexpected manipulation. The Subresource Integrity standard limits this guarantee to script and link resources loaded on Web pages via the use of HTML attributes. IPFS provides a verification mechanism that is constrained to hash-based, content-addressable links with no ability to complete content negotiation. Another mechanism that cannot be applied to existing links is proposed by RFC6920; it recommends the use of named information hashes and a resolution method that creates a content addressable URL [1].

This paper proposes a hyperlinking solution that decouples integrity information from link and resource syntaxes, enabling verification of any representation of a resource from any type of link. We call this approach Resource Integrity Proofs (RIPs). RIPs provide a succinct way to link to resources with cryptographically verifiable content integrity. RIPs can be combined with blockchain technology to create discoverable proofs of existence to off-chain resources.



Resource Integrity Proofs use the representation of a resource as the input to a cryptographic hash function to generate a digest value. We can reproduce the digest value because the RIP data model requires one to record the content type and digest algorithm. Third parties can easily verify data received by 1) dereferencing the URL of the desired resource and 2) using the digest algorithm on the data to generate a matching digest value to ensure that the data was not unexpectedly manipulated. The content received is now tamper-evident. RIPs may be placed on blockchains to simultaneously enable discoverability of off-chain resources and establish a proof of existence.


Resource Integrity Proofs allow any party to find a given resource. This is achieved simply by including the URL of the resource in the data model. RIPs may be placed on blockchains to enable discovery of data whilst keeping sensitive data off-chain (i.e., private and secure).

Scheme Agility

Resource Integrity Proofs make no assumptions on the URL scheme used. This scheme agility means that one can enable verification of the integrity of a resource using any URL scheme with any content type.

Exemplary Use Case

Meeting Regulatory Compliance

Organizations must provide documentation to regulators in order to maintain compliance.

We can implement software to meet the full requirements of this use case by adding RIPs to the already composable Lego-like ecosystem of interoperable decentralized technologies such as DIDs, VCs, and OCAPs -- and by combining this ecosystem with a cryptographically auditable system, such as a blockchain.

When an organization is preparing supporting documentation to meet compliance, they can post one or more RIPs and an OCAP for accessing each resource to a blockchain. This OCAP only grants access to the regulator and only to the specific items and for the duration that they need. Posting the RIP to a blockchain enables discoverability of the resource and establishes a proof of existence. The tamper-evident characteristics of the blockchain prove that the data existed at some point in the past, establishing trust via the cryptosystem rather than requiring it in the organization. The regulator then uses the delegated OCAP to dereference the url in the RIP and to ensure the data was not changed since the time of submission.

Data Model

The Resource Integrity Proof (RIP) is a data model built using the Linked Data Proofs specification. It can be represented using many different syntaxes; examples are given here in JSON-LD, N-Quads, and in a simple table.


The location of the resource.


The Linked Data digital proof.

  • type: The URL identifying the digital proof suite.
  • contentType: The content type for the resource.
  • digestAlgorithm:The cryptographic hash function used to generate the digestValue.
  • digestValue: The output value of the resource generated by the digestAlgorithm.

JSON-LD Syntax

  "@context": "",
  "id": "",
  "proof": {
    "type": "MessageDigest2018",
    "contentType": "application/json",
    "digestAlgorithm": "sha256",
    "digestValue": "I1HMBrf9_K9aprW11YTQrKefEzmjpI6OW0adDpMRbwo"

N-Quads Syntax

<> <> _:b0 .
_:b0 <> "application/json" .
_:b0 <> <> .
_:b0 <> "sha256" .
_:b0 <> "I1HMBrf9_K9aprW11YTQrKefEzmjpI6OW0adDpMRbwo" .


Subject Predicate Object Graph _:b0
_:b1 _:b0
_:b1 sha256 _:b0
_:b1 I1HMBrf9_K9aprW11YTQrKefEzmjpI6OW0adDpMRbwo _:b0


[1] Example from Naming Things with Hashes (RFC6920)

Using an Authority of and the sha-256 hash of the text "Hello World!" we can generate the following ni URI:


The generated ni URI takes advantage of the .well-known URI (RFC5785) format so that we can dereference the information using HTTP(S):

[2] Diagram of Data Servers and a Ledger

You can’t perform that action at this time.