Hector Sanjuan
2d138b056e
Golint: fix golint warnings in merkledag submodule
...
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-02-06 17:45:09 +01:00
Steven Allen
f9d935b984
rename import of go-ipld-format from node/format to ipld
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-29 11:55:34 -08:00
Steven Allen
699b2c4bb8
make code-climate happier
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-25 15:43:03 -08:00
Steven Allen
d154b4a990
merkledag: switch to new dag interface
...
Also:
* Update the blockstore/blockservice methods to match.
* Construct a new temporary offline dag instead of having a
GetOfflineLinkService method.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-25 15:13:19 -08:00
Steven Allen
fe8846fcd7
gx: mass update
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-24 15:58:44 -08:00
Steven Allen
dfe7ef4fcf
gx: update go-multihash
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-12-14 13:09:51 -08:00
Kevin Atkinson
0182e5977c
Documentation.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-10-19 14:14:49 -04:00
Kevin Atkinson
2e15dcb647
Enable CidV1 (and other prefixes) in the Dag Modifier.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-10-19 13:30:53 -04:00
Steven Allen
70d6629940
gx: update go-cid, go-multibase, base32
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-09-01 17:46:49 -07:00
Jeromy
cccc6a94a3
update go-multihash and bubble up changes
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-07-11 19:27:43 -07:00
Łukasz Magiera
8ab93aaeb2
Update go-datastore to 1.2.2, go-cid to 0.7.16
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-07-04 20:18:57 +02:00
Steven Allen
13636bef50
blocks: gx import go-block-format
...
And updated related dependencies.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-06-29 22:12:14 +02:00
zramsay
c5df8f0796
apply the megacheck tool to improve code quality
...
License: MIT
Signed-off-by: Zach Ramsay <zach.ramsay@gmail.com>
2017-05-31 16:56:11 -04:00
Kevin Atkinson
9350c513f1
Documentation
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-04-25 23:47:48 -04:00
Kevin Atkinson
076d0bd9b1
merkeldag: change SetPrefix param to a pointer and reset the prefix on nil
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-04-25 23:36:39 -04:00
Kevin Atkinson
518adec022
adder: add support for using CidV1
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-04-25 23:36:39 -04:00
Kevin Atkinson
9b58fa773a
merkledag: provide better diagnostics when Prefix.Sum fails
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-04-25 23:01:05 -04:00
Jeromy
b15470d548
bubble up updates from go-multihash changes
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-04-20 20:28:04 +02:00
Jeromy
b4eeff2d84
update go-multihash and bubble up deps
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-02-12 12:25:41 -08:00
Jeromy
7c8a8a81cf
Add json unmarshal code and fix panic
...
A panic would occur when a link was created with a nil cid, this should
be allowable, just catch the potential problem and skip marshaling the
cid.
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-12-14 16:11:07 -08:00
Jeromy
4373bf9d75
merkledag: fix json marshalling of pbnode
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-12-14 13:11:49 -08:00
Jeromy
13f6528e30
merkledag: respond with correct cid to Cid() method
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-11-29 14:46:50 -08:00
Jeromy
cd6d2d24f4
merkledag: retain cid types when roundtripping through a ProtoNode
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-11-29 11:32:41 -08:00
Jeromy
53d47669da
bubble up go-datastore deps
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-11-28 22:29:38 -08:00
Jeromy
f0f88adea0
completely remove go-key dep
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-11-28 21:42:32 -08:00
Jeromy
396c629301
update to newer ipld node interface with Copy and better Tree
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-11-15 18:00:49 -08:00
Jeromy
eac13abaec
update to new cid and ipld node packages
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-25 09:54:04 -07:00
Jeromy
ded60a7356
unixfs: allow use of raw merkledag nodes for unixfs files
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-17 16:51:39 -07:00
Jeromy
48f7e14277
extract node interface
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-14 07:53:48 -07:00
Jeromy
01aee44679
merkledag: change 'Node' to be an interface
...
Also change existing 'Node' type to 'ProtoNode' and use that most
everywhere for now. As we move forward with the integration we will try
and use the Node interface in more places that we're currently using
ProtoNode.
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-12 08:16:03 -07:00
Jeromy
f4d7369c4a
bitswap: protocol extension to handle cids
...
This change adds the /ipfs/bitswap/1.1.0 protocol. The new protocol
adds a 'payload' field to the protobuf message and deprecates the
existing 'blocks' field. The 'payload' field is an array of pairs of cid
prefixes and block data. The cid prefixes are used to ensure the correct
codecs and hash functions are used to handle the block on the receiving
end.
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-10 08:19:31 -07:00
Jeromy
1f9ec4e3ed
update to libp2p 4.0.1 and propogate other changes
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-05 22:12:43 -07:00
George Antoniadis
6859b8ccd8
Extract key and datastore
...
License: MIT
Signed-off-by: George Antoniadis <george@noodles.gr>
2016-09-09 15:52:25 +01:00
Jeromy
c8fe495934
integrate CIDv0
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-09-07 13:32:32 -07:00
Jeromy
bf23516dc0
cache encoded data when reading dag nodes from disk
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-07-10 13:13:35 -07:00
Richard Littauer
f60ae0a1b9
Capitalized NOTE, first letter of following word
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-04-29 16:57:19 -04:00
Mildred Ki'Lya
8f8020e86f
merkledag: Remove cached Node.node
...
License: MIT
Signed-off-by: Mildred Ki'Lya <mildred-pub.git@mildred.fr>
2016-03-04 07:48:34 +01:00
Mildred Ki'Lya
7c11fe57cb
Rename Encoded() to EncodeProtobuf()
...
License: MIT
Signed-off-by: Mildred Ki'Lya <mildred-pub.git@mildred.fr>
2016-03-01 09:01:51 +01:00
Mildred Ki'Lya
1f5b76ac18
Remove GetCachedNode()
...
License: MIT
Signed-off-by: Mildred Ki'Lya <mildred-pub.git@mildred.fr>
2016-03-01 09:01:51 +01:00
Mildred Ki'Lya
7fc9205709
path/resolver.go: simplify ResolveLinks()
...
License: MIT
Signed-off-by: Mildred Ki'Lya <mildred-pub.git@mildred.fr>
2016-03-01 09:01:51 +01:00
Mildred Ki'Lya
28bc3ee8ee
merkledag: make Link.Node (the node cache) a private field
...
License: MIT
Signed-off-by: Mildred Ki'Lya <mildred-pub.git@mildred.fr>
2016-03-01 09:01:51 +01:00
Mildred Ki'Lya
1f820dc235
path/resolver.go: Handle timeout here
...
License: MIT
Signed-off-by: Mildred Ki'Lya <mildred-pub.git@mildred.fr>
2016-03-01 08:59:44 +01:00
Mildred Ki'Lya
5808fe2edd
Remove usage of merkledag.Link.Node pointer outside of merkledag
...
This prepares for inclusion of IPLD where the Node pointer won't be there.
License: MIT
Signed-off-by: Mildred Ki'Lya <mildred-pub.git@mildred.fr>
2016-03-01 08:59:44 +01:00
Jeromy
d7dab3afea
Use gx vendored go-ipfs-utils where possible
...
For the rest of the packages in util, move them to thirdparty
and update the references. util is gone!
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-02-12 17:21:40 -08:00
Jeromy
0e312f5caf
initial vendoring of libp2p outside of the repo with gx
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-30 09:34:06 -08:00
Jeromy
efac042e82
rework editor creation and finalization
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-12 08:22:55 -08:00
Jeromy
0d35cc9aea
set data and links nil if not present
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-11-02 23:38:36 -08:00
Jeromy
b32d0ef153
implement 'editor' abstraction
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-07-28 15:00:07 -07:00
Jeromy
7c510662ae
break merkledag utils into its own package
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-07-28 15:00:07 -07:00
Jeromy
1c74bc57d7
include hash of resolved object in object stat output
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-07-21 10:49:45 -07:00