Commit Graph

420 Commits

Author SHA1 Message Date
Derrick Hammer 4023d99838
fix: MarshalRegistryEntry should optionally take pk so it can work both for marshall and signing 2024-03-03 12:52:59 -05:00
Derrick Hammer ad7880edbe
fix: MarshalRegistryEntry needs to pack the public key after the record type byte 2024-03-03 12:42:45 -05:00
Derrick Hammer cab059e82a
fix: use original data not the version with the message type stripped, so we don't need to shift the offset math in UnmarshalSignedRegistryEntry 2024-03-03 12:25:27 -05:00
Derrick Hammer 56d5ab5e6b
Revert "fix: use record type, not hash type"
This reverts commit 4004dd98c9.
2024-03-03 12:16:51 -05:00
Derrick Hammer 4004dd98c9
fix: use record type, not hash type 2024-03-03 12:12:45 -05:00
Derrick Hammer c6aa2cf4a2
fix: Get needs to actually return the entry 2024-03-03 11:26:44 -05:00
Derrick Hammer 15d0999fdf
fix: store and use by ref 2024-03-03 11:00:34 -05:00
Derrick Hammer e6c6ea473c
refactor: we do not need to bother storing our own ProviderStore data as that would just duplicate any possible data coming from the ProviderStore. 2024-03-03 09:30:40 -05:00
Derrick Hammer 73dc22a71e
refactor: add a local param to StorageService.GetCachedStorageLocations so we don't spam the local provider store on every poll 2024-03-03 09:28:33 -05:00
Derrick Hammer 8c4ebeccd4
fix: need to init underlying map 2024-03-03 07:16:24 -05:00
Derrick Hammer a5e5e76e37
fix: need to encode size of paths 2024-03-03 05:34:27 -05:00
Derrick Hammer 59b9e24238
fix: wm.ErrorPages needs to be passed by ref 2024-03-03 05:22:31 -05:00
Derrick Hammer dce94a4bfc
fix: init a empty ErrorPages if nil 2024-03-03 05:22:13 -05:00
Derrick Hammer 9fbb0bb859
fix: ensure WebAppErrorPages id inited on decode, and return early as an empty map on encode 2024-03-03 04:41:52 -05:00
Derrick Hammer a02458b597
fix: need to use WebAppErrorPages in WebAppMetadata 2024-03-03 04:34:03 -05:00
Derrick Hammer 96d99bb533
refactor: create a type alias for error pages, so we can manage the msgpack encoding properly 2024-03-03 04:28:45 -05:00
Derrick Hammer f29c485b41
refactor: rewrite WebAppFileMap encoding, as its completely wrong 2024-03-03 04:01:04 -05:00
Derrick Hammer 6c3af96077
refactor: make WebAppFileMap a pointer in WebAppMetadata 2024-03-03 03:40:23 -05:00
Derrick Hammer cb7295408c
feat: add WebAppFileMap::Values 2024-03-03 03:33:36 -05:00
Derrick Hammer cc5666ac1c
refactor: switch to using a hashmap based map WebAppFileMap for the webapp meta with path sorting 2024-03-03 03:27:15 -05:00
Derrick Hammer a059980ff0
fix: check local 1st and add it to locations, then return locations in len(locationMap) check 2024-03-02 05:53:54 -05:00
Derrick Hammer b75c8cd3fe
refactor: move local check inside GetCachedStorageLocations to be more transparent 2024-03-02 05:46:18 -05:00
Derrick Hammer 1a4890a6c0
feat: add support to check the local store and inject it 1st as a signed location before going into the network 2024-03-02 05:23:39 -05:00
Derrick Hammer ed79c80def
feat: add Get and Has to fileReferenceMap 2024-03-01 22:23:31 -05:00
Derrick Hammer 9a2d7ebd31
feat: add Get and Has to directoryReferenceMap 2024-03-01 22:21:49 -05:00
Derrick Hammer eb4e4a9f37
refactor: use static error object 2024-03-01 20:54:16 -05:00
Derrick Hammer 1c8efbfba8
fix: change to parsing MetadataExtensionUpdateCID via bytes 2024-03-01 03:41:05 -05:00
Derrick Hammer 4b6f71ea1a
fix: init em.Data 2024-03-01 03:30:26 -05:00
Derrick Hammer c00fe56389
fix: need to cast language items to a string 2024-03-01 03:25:20 -05:00
Derrick Hammer 05522522bf
refactor: switch to using new intParse method 2024-03-01 03:21:31 -05:00
Derrick Hammer 1b950bae08
fix: init m 2024-03-01 03:17:03 -05:00
Derrick Hammer d52e20c0e1
fix: add type switch for bitrate 2024-03-01 03:15:12 -05:00
Derrick Hammer 40f9ec7cac
fix: audiochannels is int8 2024-03-01 03:12:14 -05:00
Derrick Hammer 12f4b7cdff
fix: bitrate is uint16 2024-03-01 03:10:20 -05:00
Derrick Hammer b813f8599f
fix: uint16 not int16 2024-03-01 03:08:37 -05:00
Derrick Hammer 52c5af78a9
fix: asr is parsed as int16 2024-03-01 03:05:11 -05:00
Derrick Hammer ab37004d16
feat: add msgpack decode to MediaFormat 2024-03-01 03:01:30 -05:00
Derrick Hammer 889d327c3a
refactor: use decodeIntMap 2024-03-01 02:55:45 -05:00
Derrick Hammer 9485c023e7
fix: init mmd.Data 2024-03-01 02:49:50 -05:00
Derrick Hammer 28ff1eed48
fix: when we have a proof, the body also has a metadata type byte that needs to be validated 2024-03-01 02:46:10 -05:00
Derrick Hammer f350a37e58
fix: don't actually hash the prefix 2024-03-01 02:36:11 -05:00
Derrick Hammer 7c6d11258f
fix: need to prepend HashTypeBlake3 prefix to bodyBytes for b3hash 2024-03-01 02:29:22 -05:00
Derrick Hammer 365ba04844
refactor: strip out the proofSectionLength from all for readability of the offsets 2024-03-01 02:24:20 -05:00
Derrick Hammer efb11a9c50
fix: change +4 to +2 2024-03-01 02:19:35 -05:00
Derrick Hammer 39903f03e5
fix: verify proofData is 4 items 2024-03-01 02:08:54 -05:00
Derrick Hammer 6689c95eea
fix: need to store state vars outside proofData loop 2024-03-01 01:53:43 -05:00
Derrick Hammer 280e5b1d71
fix: strip key type prefix 2024-03-01 01:49:00 -05:00
Derrick Hammer 258031cb8f
fix: need to store state vars outside proofData loop 2024-03-01 01:41:15 -05:00
Derrick Hammer 578cdba32e
refactor: var rename 2024-03-01 01:36:18 -05:00
Derrick Hammer 8d7383c466
fix: check 1st byte of pubkey, not mhashType 2024-03-01 01:35:54 -05:00