- From: Melvin Carvalho <melvincarvalho@gmail.com>
- Date: Mon, 21 Apr 2014 23:40:42 +0200
- To: Web Payments <public-webpayments@w3.org>
- Message-ID: <CAKaEYhKVAbpzhyyhxbaMZep3SGw=5B4epuGbi2DKTt3m_bzEpA@mail.gmail.com>
To give a concrete example, 8 goes from:
Example 8
{
"@context": [
"https://w3id.org/security/v1",
{
"dc": "https://w3id.org/dc/terms/",
"foaf": "http://xmlns.com/foaf/0.1/"
}
],
"@id": "http://example.com/logo.jpg",
"@type": "foaf:Image",
"dc:title": "Example Logo",
"digest":
{
"@type": "Digest",
"digestAlgorithm": "http://www.w3.org/2000/09/xmldsig#sha1",
"digestValue": "981ec496092bf6ea18d6251d36068b52b633268b"
}
}
To
Example 8
{
"@context": [
"https://w3id.org/security/v1",
{
"dc": "https://w3id.org/dc/terms/",
"foaf": "http://xmlns.com/foaf/0.1/"
}
],
"@id": "http://example.com/logo.jpg",
"@type": "foaf:Image",
"dc:title": "Example Logo",
"digest":
{
"@id": "ni://sha-1;981ec496092bf6ea18d6251d36068b52b633268b"
}
}
And will no longer contain a bnode, and potentially be dereferancable
at /.well-known/ni/sha-1/981ec496092bf6ea18d6251d36068b52b633268b
On 21 April 2014 23:32, Melvin Carvalho <melvincarvalho@gmail.com> wrote:
> I was just looking at the digest class [1]
>
> It seems to contain an algorithm and a value. I was wondering if it was
> known that the ni: URI scheme (formerly the di: URI scheme) from RFC 6920
> "Naming things with hashes" does exactly this. I extensively use ni:/// to
> create distributed databases and it has an added advantage of being
> dereferancable via the .well-known/ni/<alg>/<digest> pattern.
>
> http://tools.ietf.org/html/rfc6920
>
> Are there thoughts here regarding reuse?
>
> [1]
>
> 2. Classes 2.1 Digest
>
> This class represents a message digest that may be used for data integrity
> verification. The digest algorithm used will determine the cryptographic
> properties of the digest.
> StatusstableParent Classowl:ThingExpected propertiesdigestAlgorithm,
> digestValue
>
> The example below describes a cryptographic digest:
> Example 1
>
> {
> "@context": "https://w3id.org/security/v1",
> "@type": "Digest",
> "digestAlgorithm": "http://www.w3.org/2000/09/xmldsig#sha1",
> "digestValue": "981ec496092bf6ee18d6255d96069b528633268b"
> }
>
>
>
Received on Monday, 21 April 2014 21:41:17 UTC