didcomm-messaging icon indicating copy to clipboard operation
didcomm-messaging copied to clipboard

what is 'multi-hash'?

Open gobengo opened this issue 1 year ago • 7 comments

added here by @TelegramSam merged @tplooker

  • data: A JSON object that gives access to the actual content of the attachment. Contains the following subfields: ...
    • hash: The hash of the content encoded in multi-hash format. Optional. Used as an integrity check for the attachment, and > MUST be used if the data is referenced via the links data attribute.

What is 'multi-hash format' here? What should it hyperlink to as a specification and/or normative reference? 🙏

gobengo avatar Apr 14 '23 19:04 gobengo

Regardless of what to hyperlink to, does the reference generally refer to the same thing as what other DIF repos name 'multihash'?

i.e. https://multiformats.io/multihash/ - if so, you may want to keep an eye on this ietf multiformats list

gobengo avatar Apr 14 '23 19:04 gobengo

I also think this multihash reference to the multiformats https://multiformats.io/multihash/ Basically describes itself:

  • the hash algorithm used
  • the length of the hash that follows
  • the real hash data

FabioPinheiro avatar Apr 17 '23 09:04 FabioPinheiro

Any link to the CESR work? https://github.com/WebOfTrust/cesride/issues/150#issuecomment-1699896745

rmlearney-digicatapult avatar Oct 30 '23 14:10 rmlearney-digicatapult

This spec predates a usable form of CESR. It has been posited that some future version may leverage CESR for encoding.

TelegramSam avatar Feb 05 '24 19:02 TelegramSam

We should add a link to the multi-hash spec. This is a clarification, and would not require a version change.

TelegramSam avatar Feb 05 '24 20:02 TelegramSam

A good link may be https://www.ietf.org/archive/id/draft-multiformats-multihash-07.html

See also this fledgling ietf wg https://datatracker.ietf.org/wg/multi/about/

gobengo avatar Feb 05 '24 23:02 gobengo

multi-hash is another draft spec that seems that is expired.

https://datatracker.ietf.org/doc/draft-multiformats-multihash/07/

FabioPinheiro avatar Mar 04 '24 18:03 FabioPinheiro