This website requires JavaScript.
c039ced75e
test: implement directory encoding test, clean up all other unn-needed test dummies
Derrick Hammer
2024-01-05 06:23:04 -0500
70c63a5a34
chore: unneeded debug
Derrick Hammer
2024-01-05 06:17:52 -0500
951f0062da
refactor: add needed helper functions and overrides to properly compare the maps
Derrick Hammer
2024-01-05 06:16:04 -0500
15b6a0dc19
refactor: change FileReference.DecodeMsgpack to just directly decode history, as it has its own deser
Derrick Hammer
2024-01-05 06:12:52 -0500
0e2ef0969a
refactor: change FileReference.DecodeMsgpack to use an empty map wrapper for exp and history if they were not decoded, we don't want them nil
Derrick Hammer
2024-01-05 06:10:29 -0500
c5fb8a2c15
refactor: change FileReference.EncodeMsgpack to use new map wrappers, and don't serialize ext or history if empty
Derrick Hammer
2024-01-05 06:08:55 -0500
c328cb1f1b
refactor: use map struct wrappers for and ext, fileHistory, and add serialization methods for them
Derrick Hammer
2024-01-05 06:07:35 -0500
a10bec66ea
refactor: allow unmarshalMapMsgpack to handle int maps
Derrick Hammer
2024-01-05 06:05:59 -0500
6c27a978d1
refactor: add more type cases to marshallMapMsgpack
Derrick Hammer
2024-01-05 06:04:46 -0500
c3a696138a
refactor: move directoryReferenceMap and fileReferenceMap to its own file
Derrick Hammer
2024-01-05 04:43:46 -0500
d39f959e31
fix: ensure we always serialize an empty map if nil
Derrick Hammer
2024-01-05 04:35:20 -0500
15030b6866
refactor: use a linked hash map to keep order of file and directory entries, and refactor the json and msgpack marshalling and centralize it further
Derrick Hammer
2024-01-05 03:46:08 -0500
85320087a4
fix: need to pack with int, not int8
Derrick Hammer
2024-01-04 13:49:23 -0500
261c88b568
fix: don't call encode inside EncodeMsgpack, ensure its delegated to the custom marshalers
Derrick Hammer
2024-01-04 13:49:07 -0500
c5c4bbfb6e
fix: missing return Encode
Derrick Hammer
2024-01-04 13:48:17 -0500
2ac5ff60be
refactor: need to abstract DirectoryMetadata maps to their own types to properly handle msgpack serialization
Derrick Hammer
2024-01-04 12:41:39 -0500
9f2e17bf54
refactor: centralize code more
Derrick Hammer
2024-01-04 10:50:08 -0500
df4cadf797
refactor: put shared serialization code in private encode method, and update json and msgpack to use it
Derrick Hammer
2024-01-04 10:33:57 -0500
c5441b2e16
chore: remove commented code
Derrick Hammer
2024-01-04 10:27:56 -0500
bd3cbc694f
fix: wrong json name for PlaintextCID
Derrick Hammer
2024-01-04 10:27:23 -0500
53af084864
refactor: update ExtraMetadata MarshalJSON and add UnmarshalJSON
Derrick Hammer
2024-01-04 10:26:44 -0500
026a7dc10e
fix: need to export Encoder for test cases
Derrick Hammer
2024-01-04 10:08:13 -0500
e6034b9aae
refactor: move UnmarshalBase64UrlJSON to encoding to prevent an import loop
Derrick Hammer
2024-01-04 09:51:35 -0500
039fbc1867
refactor: export ErrMultibaseEncodingNotSupported
Derrick Hammer
2024-01-04 09:50:11 -0500
d907fddde8
fix: need to cast to Base64UrlBinary
Derrick Hammer
2024-01-04 08:57:58 -0500
bd1a1084d3
feat: add metadata types
Derrick Hammer
2024-01-04 08:21:39 -0500
bebea5a7e1
feat: add serialize package
Derrick Hammer
2024-01-04 08:21:19 -0500
c2ed126ab8
feat: wip directory metadata
Derrick Hammer
2024-01-04 08:20:37 -0500
eed785e1eb
dep: add deps
Derrick Hammer
2024-01-04 08:19:56 -0500
722dd7d014
refactor: change marshaling
Derrick Hammer
2024-01-04 08:19:26 -0500
05fb104990
feat: add msfpack marshal support to encoding
Derrick Hammer
2024-01-04 07:44:09 -0500
4457dff415
feat: add json marshal support to encoding
Derrick Hammer
2024-01-04 04:19:24 -0500
5e0b9db382
refactor: move test consts under testdata folder in pkg
Derrick Hammer
2024-01-04 02:51:05 -0500
e19016be9d
feat: add directory cid type
Derrick Hammer
2024-01-04 02:24:15 -0500
21ad88d55e
refactor: add NodeIdCode type
Derrick Hammer
2024-01-03 15:28:40 -0500
989cb82a01
fix: EncryptedCID FromBytes needs to be prefixed with class name
Derrick Hammer
2024-01-03 15:28:05 -0500
6d943b3b2e
fix: OriginalCID needs to be public
Derrick Hammer
2024-01-03 15:27:35 -0500
576161fbf8
feat: add EncryptedCID
Derrick Hammer
2024-01-03 08:46:30 -0500
1b30048a75
refactor: unify all encoding packages
Derrick Hammer
2024-01-03 08:36:23 -0500
355de2b65f
refactor: make HashCode a generic utility
Derrick Hammer
2024-01-03 08:27:04 -0500
3a251479e1
feat: add NodeId
Derrick Hammer
2024-01-03 08:21:48 -0500
56be9082c3
refactor: add custom type to use in maps MultihashCode
Derrick Hammer
2024-01-03 08:20:03 -0500
93e0ce02f5
feat: add ed25519 package
Derrick Hammer
2024-01-03 08:11:26 -0500
aa48eb8ac4
feat: add CID
Derrick Hammer
2024-01-03 07:18:19 -0500
38044bf297
feat: update test data
Derrick Hammer
2024-01-03 07:18:04 -0500
977b764904
fix: buffer the bytes incase its less than 4
Derrick Hammer
2024-01-03 07:17:37 -0500
50dd9251c2
feat: add utils package
Derrick Hammer
2024-01-03 04:56:10 -0500
834c964892
refactor: move multibase to its own subpackage
Derrick Hammer
2024-01-03 04:43:34 -0500
c44c11d264
refactor: rename constructor
Derrick Hammer
2024-01-03 04:00:21 -0500
208f50324a
feat: add type maps
Derrick Hammer
2024-01-03 03:57:39 -0500
8b25f9d349
chore: LICENSE
Derrick Hammer
2024-01-03 03:48:50 -0500
8f0218169e
chore: go.mod
Derrick Hammer
2024-01-03 03:48:39 -0500
ee15a298a4
feat: initial Multibase
Derrick Hammer
2024-01-03 03:48:19 -0500
3d4fdfb9e3
feat: initial Multihash
Derrick Hammer
2024-01-03 03:47:47 -0500
7f502187e6
feat: base helpers
Derrick Hammer
2024-01-03 03:47:16 -0500
ce45d8863f
feat: initial testdata
Derrick Hammer
2024-01-03 03:47:04 -0500
d5dc1de418
feat: initial byte types
Derrick Hammer
2024-01-03 03:46:30 -0500
5bee54d174
Initial commit
master
Derrick Hammer
2024-01-02 15:21:09 +0000