Skip to content
This repository has been archived by the owner on Aug 24, 2021. It is now read-only.

feat: support identity hashes #66

Merged
merged 1 commit into from
Apr 24, 2019
Merged

Conversation

rvagg
Copy link
Member

@rvagg rvagg commented Apr 5, 2019

This has come up a few times recently: inline IPLD blocks encoded within identity CIDs and inline entries in IPLD data structures (e.g. a HAMT/Map) encoded with identity CIDs, rather than links to different entities. I think this is an appropriate change here? Basically just removing the falsey coercion of 0x0.

I've also changed 'id' to 'identity' to match the multicodec table. I doubt this is a breaking change because it's not currently possible to use 'id' anyway.

@rvagg rvagg force-pushed the rvagg/identity-hash branch from ba36bbc to 5ef8fdc Compare April 5, 2019 00:39
@vmx vmx requested a review from daviddias April 8, 2019 11:23
name: 'identity'
},
hex: '7465737420737472696e6720f09f918d',
size: 16
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this test fixture taken from a go-ipfs/go-multiaddr example/output?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no, I just made one, should I fetch one from there?

> Buffer.from('7465737420737472696e6720f09f918d', 'hex').toString()
'test string 👍'

@vmx
Copy link
Member

vmx commented Apr 24, 2019

Looks good, timeout to get a reply from @daviddias is reached (feel free to open an new issue), hence merging.

@vmx vmx merged commit b85999d into multiformats:master Apr 24, 2019
@rvagg rvagg deleted the rvagg/identity-hash branch April 24, 2019 11:53
@jacobheun
Copy link
Contributor

jacobheun commented Jul 9, 2019

@daviddias @vmx can we get a release of this? It's in master but there hasn't been a release of it. ref #68

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants