Commit graph

148 commits

Author SHA1 Message Date
1535273259 Initial implementation of routing/offline. 2017-02-02 22:15:28 -03:00
6448a35a72 Implemented ipfs_pin_has_child 2017-01-05 19:01:24 -03:00
4c330e29be Initial implementation of pin/set 2017-01-05 18:55:39 -03:00
jmjatlanta
61d0adc445 misc tweaks and fixes
Now paying attention to the IPFS_PATH environment variable to determine
where the repository is. Fixed some broken tests. Fixed a bug whereby a
subdirectory within a subdirectory was not displaying correctly when
imported.
2017-01-01 23:48:09 -05:00
f7a029ade3 Added pinned struct. 2016-12-30 02:55:25 -03:00
9d194ad484 Implemented conversion between PinMode and string. 2016-12-30 01:50:45 -03:00
ef380f2a69 Initial implementation of pin/pin 2016-12-30 01:18:03 -03:00
jmjatlanta
c2fe60949e Added the ability to retrieve the file using directories
Files can be refered to directly using their hash, or the hash of their
directory and the file name.
2016-12-29 19:05:44 -05:00
jmjatlanta
396dfc6abc Directory hashes match 2016-12-29 04:42:01 -05:00
jmjatlanta
fa3dd77e96 Saving directories 2016-12-28 22:45:35 -05:00
jmjatlanta
9d77b2709f Beginnings of handling multiple files 2016-12-27 21:39:58 -05:00
jmjatlanta
1dcbf8962e Intermediate save for hash matching 2016-12-23 17:21:04 -05:00
jmjatlanta
15b432c70e Now using correct hashes on small files
Also added ipfs cat command line functionality
2016-12-23 12:53:03 -05:00
John Jones
8d2aeab016 Fixed various memory leaks 2016-12-23 10:49:30 -05:00
jmjatlanta
914d3caaed Intermidiate commit with big changes to storage formats
I am attempting to match the storage format of the reference
implementation, so as to generate the same hashes.
2016-12-23 09:37:43 -05:00
7691fe0dc2 Created errs.c and moved to util directory. 2016-12-23 00:45:13 -03:00
049078effc Some changes at namesys. 2016-12-23 00:28:30 -03:00
jmjatlanta
da4b1f86f4 Added command ipfs object get [hash]
This will display the formatted data of a MerkleDag (links and data)
2016-12-22 10:21:18 -05:00
jmjatlanta
7fa0fc6a7b Added a simplistic command line.
From the command line, you can init the repository or add a file.
Directories coming soon...
2016-12-21 08:08:44 -05:00
jmjatlanta
f8cdaf0a97 Merge branch 'master' of https://github.com/kenCode-de/c-ipfs 2016-12-21 06:40:31 -05:00
jmjatlanta
c8fdb084e4 Moving closer to binary compatability with go version of ipfs
The files are now stored in the same format. Now it is necessary to
reverse engineer the directory structure
2016-12-21 06:40:19 -05:00
b17403b61a Initial implementation of namesys/publisher 2016-12-21 07:21:40 -03:00
6b9d205ef2 Some changes at util/time 2016-12-21 07:14:21 -03:00
41b7579f21 Some changes at namesys/pb 2016-12-20 21:08:51 -03:00
5b8678b48c Some changes at namesys/routing 2016-12-20 20:54:37 -03:00
b914745b47 Removed redundant struct stime from util/time 2016-12-20 20:38:31 -03:00
jmjatlanta
a654022d32 More work on unixfs protobuf 2016-12-19 17:21:21 -05:00
jmjatlanta
57ed4fd5e4 Beginnings of persistence for unixfs 2016-12-19 14:19:43 -05:00
jmjatlanta
bece919c40 Merge branch 'master' of https://github.com/kenCode-de/c-ipfs 2016-12-19 09:03:45 -05:00
jmjatlanta
a1166e840a Move of node to merkledag 2016-12-19 09:03:28 -05:00
fea5d3b8bf Initial implementation of namesys/routing 2016-12-16 00:30:40 -03:00
aa49c7dc35 Initial implementation of namesys/pb 2016-12-16 00:28:12 -03:00
jmjatlanta
1d63cdb4a1 Persisting large files in chunks 2016-12-15 12:38:08 -05:00
jmjatlanta
34301c286e Storing large files
Files larger than about 200K are split into smaller files and stored in
the ipfs file system in blocks.
2016-12-15 05:40:24 -05:00
jmjatlanta
033dd767b4 More work on persisting data to disk.
Blockstore now storing the data, whereas datastore is storing the key
and filename. The key should be the multihash (currently the sha256, not
the multihash), and the value is the filename (base32).
2016-12-14 12:07:43 -05:00
jmjatlanta
bf0cbfb412 Removed compiler warnings, starting to import large files 2016-12-14 06:25:09 -05:00
9ec06749f2 Initial implementation of util/time.c 2016-12-13 22:16:51 -03:00
John Jones
876e2dfcf2 Fixed memory leaks around node and allocations 2016-12-12 18:27:46 -05:00
jmjatlanta
a36ba20557 made node links a single linked list instead of array
This will save some complicated memory allocations
2016-12-12 16:58:27 -05:00
jmjatlanta
4fe768c2c5 Working with nodes to add protobuf to persist to db
adding a link to a node does a realloc. I believe this is causing
problems. I am going to replace this and see if that fixes the issue.
2016-12-12 15:06:17 -05:00
jmjatlanta
e0b0552b39 Pushing Cid into protobuf 2016-12-12 06:27:06 -05:00
786bd5d80b Initial implementation of dnslink 2016-12-08 23:29:50 -03:00
73a7690725 namesys: Invalid prototype removed. 2016-12-08 07:31:17 -03:00
7a3d0c5e0b namesys/path: Changed error messages to a separate file. 2016-12-08 07:08:34 -03:00
84f24797f4 Fixed memory leaks in namesys and path. 2016-12-08 06:48:38 -03:00
jmjatlanta
75bee8d1ea Merge branch 'master' of https://github.com/kenCode-de/c-ipfs 2016-12-07 11:07:52 -05:00
jmjatlanta
4a6b88871a Merged in changes to node.h and node.c 2016-12-07 11:07:36 -05:00
f8723eb8c7 path: implemented ipfs_path_clean_path 2016-12-07 09:17:15 -03:00
John Jones
a180a63160 Setting uninitialized values
Uninitialized values should be set to NULL to aid in memory deallocation
at cleanup time.
2016-12-05 18:17:17 -05:00
jmjatlanta
da6490ac7f Implementation of MerkleDag get and put
Now saving and retrieving MerkleDags that contain data. Now need to work
with links and other types.
2016-12-05 17:23:58 -05:00
jmjatlanta
f9d927f375 Beginnings of testing for MerkleDag 2016-12-05 13:11:22 -05:00
jmjatlanta
0245aa6549 Starting implementation of MerkleDag 2016-12-05 10:50:17 -05:00
jmjatlanta
5f452969fd Merge branch 'master' of https://github.com/kenCode-de/c-ipfs 2016-12-05 07:12:37 -05:00
jmjatlanta
f79d2f9f0c Removal of incorrect copyright notice 2016-12-05 07:12:23 -05:00
496ae3ec6c namesys/path: Renamed the function names to match the rest of the project. 2016-12-05 08:55:17 -03:00
John Jones
bf9ddfd6f6 Turned on warnings for compilation 2016-12-05 06:54:21 -05:00
jmjatlanta
8d0aa3372d Merge branch 'master' of https://github.com/xethyrion/c-ipfs into xethyrion-master 2016-12-05 05:27:07 -05:00
xethyrion
0052ef8ca2 Create Example for this.c 2016-12-04 22:11:10 +02:00
xethyrion
5627bb3992 Update node.h 2016-12-04 22:10:41 +02:00
xethyrion
fd263362cb Delete testit.c_PREVIEW_DO_NOT_USE 2016-12-03 22:51:48 +02:00
xethyrion
d1f85627b1 Delete node_PREVIEW_DO_NOT_USE_YET.h 2016-12-03 22:51:40 +02:00
xethyrion
9fdda102c7 Update node.h 2016-12-03 22:51:15 +02:00
316c880bd1 namesys: Added missing proquint prototypes. 2016-12-01 19:32:29 -03:00
9ba3112b97 path/namesys: Unified resolver struct. 2016-12-01 19:25:16 -03:00
xethyrion
9d3eeabfe1 Create testit.c_PREVIEW_DO_NOT_USE 2016-12-01 21:27:18 +02:00
xethyrion
b55dc4d96e Create node_PREVIEW_DO_NOT_USE_YET.h 2016-12-01 21:26:26 +02:00
John Jones
5b7f89bdf1 Fixed memory leaks 2016-12-01 13:08:30 -05:00
a4b6a14ea5 Initial implementation of path/resolver 2016-12-01 06:48:16 -03:00
John Jones
8553fcf6c1 Merge branch 'master' of https://github.com/kenCode-de/c-ipfs 2016-11-30 11:47:01 -05:00
John Jones
b462d9ef53 More storage implementation
Successfully writing to lightningdb. Now to pull it back out. Also need
to write to the blockstore.
2016-11-30 11:46:41 -05:00
cba5839f56 namesys: Created empty DNSResolver struct. 2016-11-29 20:35:55 -03:00
d761e6062b path: Fixed ErrPath error. 2016-11-29 20:34:59 -03:00
John Jones
4626b69381 More code for storage
Pushing through on the ipfs block put use case. Building out the
necessary code to write to the blockstore.
2016-11-28 16:13:46 -05:00
74a5afe169 Merge branch 'master' of https://github.com/kenCode-de/c-ipfs 2016-11-28 10:18:36 -03:00
John Jones
50ffade515 More work on storage and cleanup
Added flatfs, as well as fixed some memory leaks. Valgrind across tests
now reports 0 memory leaks.
2016-11-28 08:09:00 -05:00
a21330af43 Initial implementation of namesys/dns.c 2016-11-27 10:57:28 -03:00
ac4cc8feaa path/path.c: Implemented SplitN.
Renamed Segments() to SplitN(), added parameters, and created a new
Segments() using SplitN() while maintaining the original functionality.
2016-11-26 10:39:53 -03:00
0f5964ad3c path/path.c: Changed PopLastSegment parameters order. 2016-11-26 10:20:23 -03:00
63c7bd72e2 Initial implementation of namesys/isdomain 2016-11-24 19:52:19 -03:00
b1d5440303 namesys: Fixed ErrNamesys error. 2016-11-24 19:49:26 -03:00
ef2f112f6a Initial implementation of namesys/proquint 2016-11-24 09:50:05 -03:00
05c45666e5 Added path pointer used to return value in Resolve and ResolveN. 2016-11-24 07:52:15 -03:00
7ddba70ada Initial implementation of namesys. 2016-11-23 17:19:16 -03:00
8ed4f62526 Fixed PathFromCid(), Cid is an struct, not an array. 2016-11-17 17:47:31 -03:00
1a8e024fb9 Merge branch 'master' of https://github.com/kenCode-de/c-ipfs 2016-11-17 17:14:39 -03:00
John Jones
c64a700223 The beginnings of datastore
A lot of code cleanup, plus beginning the implementation of a datastore.
2016-11-17 15:07:59 -05:00
792ee026db Initial path/ implementation. 2016-11-17 17:06:17 -03:00
John Jones
02c5552cd6 Added multibase and cid 2016-11-13 21:01:51 -05:00
John Jones
f42c92ea63 method names standardized 2016-11-10 16:36:34 -05:00
John Jones
32d187faa4 adjusted makefiles, generating config file for new ipfs repository 2016-11-10 08:28:51 -05:00
John Jones
8d82e8235b Adjusted makefiles 2016-11-07 16:29:30 -05:00
jmjatlanta
eb2ed30a24 Moving crypto stuff to libp2p 2016-11-03 10:22:17 -05:00
jmjatlanta
cba5d5cf20 finally actually writing the config file, although the peerid and private key are not included 2016-11-02 23:05:29 -05:00
jmjatlanta
d30fa55af7 memory cleanup reorganized 2016-11-02 13:44:56 -05:00
jmjatlanta
0d8f599ac9 Config file is now closer to completion. Still need to figure out ASN.1 DER for private key, and add peer id to config file 2016-11-02 13:09:38 -05:00
jmjatlanta
772857312f More work on the config file. Attempting to replicate the go version of the private key base64. 2016-10-31 17:19:27 -05:00
jmjatlanta
3354ade018 added base64 of pub/private key pair 2016-10-31 14:13:20 -05:00
jmjatlanta
e1c1a7ffbf many changes in layout, addition of mbedtls library for RSA encryption. 2016-10-31 11:13:42 -05:00