This website requires JavaScript.
6510beddf2
refactor: switch to using structs.SetImpl
develop
Derrick Hammer
2024-03-14 06:53:31 -0400
804f124632
feat: create a hashset subclass with a rwlock
Derrick Hammer
2024-03-14 06:51:44 -0400
83f71df029
fix: use Lock
Derrick Hammer
2024-03-11 17:51:00 -0400
fadbd7c37e
fix: use RUnlock
Derrick Hammer
2024-03-11 17:48:33 -0400
605b6a6a09
fix: add lock to GetChallenge
Derrick Hammer
2024-03-11 17:48:27 -0400
7173abb54f
fix: use Lock
Derrick Hammer
2024-03-11 17:47:56 -0400
1ecbda1a54
fix: use RLock
Derrick Hammer
2024-03-11 17:45:57 -0400
2bb558f878
refactor: add a rw mutex lock to all getter/setter methods
Derrick Hammer
2024-03-11 17:40:09 -0400
cd50bf0b39
refactor: add a rw mutex lock to all getter/setter methods
Derrick Hammer
2024-03-11 17:38:24 -0400
90d78d310e
feat: add /s5/p2p/peers endpoint
Derrick Hammer
2024-03-11 17:24:21 -0400
db5716f3a3
fix: return sre
Derrick Hammer
2024-03-11 16:33:33 -0400
d2b2fa09e3
fix: set forwarded ip before checking for a blocked connection
Derrick Hammer
2024-03-11 16:08:47 -0400
3cce024829
chore: add debug logging gor registry query and set
Derrick Hammer
2024-03-11 11:50:27 -0400
ee6f140b7e
fix: add logging of peer ip and the node id signing the message if handshake is not done
Derrick Hammer
2024-03-10 09:17:13 -0400
bb1b43958a
refactor: use clientIP and pass in a wrapped net.IPAddr
Derrick Hammer
2024-03-10 09:09:29 -0400
195abfdf20
fix: missing SetIP
Derrick Hammer
2024-03-10 08:57:32 -0400
2a6c661b49
refactor: set the ip if we have a forwarded address
Derrick Hammer
2024-03-10 08:55:55 -0400
fc31653050
refactor: add SetIP and optionally return it if it exists in the ws peer
Derrick Hammer
2024-03-10 08:54:22 -0400
45a483989c
fix: check X-Real-IP and X-Forwarded-For
Derrick Hammer
2024-03-10 08:40:44 -0400
71cb44dc61
fix: check TCPAddr and log error on closing connection, then abort
Derrick Hammer
2024-03-10 07:38:44 -0400
1f8d383da7
fix: prevent websocket loopback connections
Derrick Hammer
2024-03-10 07:24:48 -0400
4db7430abe
feat: implement GetIP as a net.Addr
Derrick Hammer
2024-03-10 07:19:49 -0400
5f5b522e68
refactor: change GetIP to GetIPString
Derrick Hammer
2024-03-10 07:16:37 -0400
48ef3e3a2a
fix: require a handshake for announcement messages
Derrick Hammer
2024-03-10 06:46:18 -0400
438e76dfb8
feat: add config level blocklist support
Derrick Hammer
2024-03-09 13:12:22 -0500
42fa773b52
refactor: allow nested buckets
Derrick Hammer
2024-03-09 07:15:54 -0500
0e82207cde
fix: use pointer methods
Derrick Hammer
2024-03-09 07:11:53 -0500
3bd336b000
fix: update ServiceParams for db
Derrick Hammer
2024-03-09 07:00:12 -0500
c9fe8a0819
feat: implement new kv database package starting with bbolt
Derrick Hammer
2024-03-09 06:46:48 -0500
cc2964e80f
feat: split off meta parsing to ParseMetadata
Derrick Hammer
2024-03-07 16:53:55 -0500
fc212ef246
fix: > not >=
Derrick Hammer
2024-03-05 15:21:47 -0500
8f32074667
refactor: switch ConnectToNode to use a retries counter and make it configurable via P2PConfig
Derrick Hammer
2024-03-05 15:13:25 -0500
a87bfe7ba6
fix: ErrTransportNotSupported check in wrong location
Derrick Hammer
2024-03-05 15:06:42 -0500
cca7d881de
fix: if ErrTransportNotSupported, then just log and return the error, don't bother blocking
Derrick Hammer
2024-03-05 15:01:59 -0500
397ed0d6ec
refactor: make no transport error an exported error we can test on
Derrick Hammer
2024-03-05 15:01:22 -0500
701386c05d
fix: set the username to the peer id for all connection uris
Derrick Hammer
2024-03-05 14:13:22 -0500
5fcf99d97e
fix: if we dont get a 200, increase the retry count to prevent a possible infinite loop
Derrick Hammer
2024-03-05 13:11:56 -0500
e2d79c0357
fix: pass nil for pk on SignRegistryEntry
Derrick Hammer
2024-03-03 12:58:23 -0500
4023d99838
fix: MarshalRegistryEntry should optionally take pk so it can work both for marshall and signing
Derrick Hammer
2024-03-03 12:52:59 -0500
ad7880edbe
fix: MarshalRegistryEntry needs to pack the public key after the record type byte
Derrick Hammer
2024-03-03 12:42:45 -0500
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
Derrick Hammer
2024-03-03 12:25:27 -0500
56d5ab5e6b
Revert "fix: use record type, not hash type"
Derrick Hammer
2024-03-03 12:16:51 -0500
4004dd98c9
fix: use record type, not hash type
Derrick Hammer
2024-03-03 12:12:45 -0500
c6aa2cf4a2
fix: Get needs to actually return the entry
Derrick Hammer
2024-03-03 11:26:44 -0500
15d0999fdf
fix: store and use by ref
Derrick Hammer
2024-03-03 11:00:34 -0500
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.
Derrick Hammer
2024-03-03 09:30:40 -0500
73dc22a71e
refactor: add a local param to StorageService.GetCachedStorageLocations so we don't spam the local provider store on every poll
Derrick Hammer
2024-03-03 09:28:33 -0500
8c4ebeccd4
fix: need to init underlying map
Derrick Hammer
2024-03-03 07:16:24 -0500
a5e5e76e37
fix: need to encode size of paths
Derrick Hammer
2024-03-03 05:34:27 -0500
59b9e24238
fix: wm.ErrorPages needs to be passed by ref
Derrick Hammer
2024-03-03 05:22:31 -0500
dce94a4bfc
fix: init a empty ErrorPages if nil
Derrick Hammer
2024-03-03 05:22:13 -0500
9fbb0bb859
fix: ensure WebAppErrorPages id inited on decode, and return early as an empty map on encode
Derrick Hammer
2024-03-03 04:41:52 -0500
a02458b597
fix: need to use WebAppErrorPages in WebAppMetadata
Derrick Hammer
2024-03-03 04:34:03 -0500
96d99bb533
refactor: create a type alias for error pages, so we can manage the msgpack encoding properly
Derrick Hammer
2024-03-03 04:28:45 -0500
f29c485b41
refactor: rewrite WebAppFileMap encoding, as its completely wrong
Derrick Hammer
2024-03-03 04:01:04 -0500
6c3af96077
refactor: make WebAppFileMap a pointer in WebAppMetadata
Derrick Hammer
2024-03-03 03:40:23 -0500
cb7295408c
feat: add WebAppFileMap::Values
Derrick Hammer
2024-03-03 03:33:36 -0500
cc5666ac1c
refactor: switch to using a hashmap based map WebAppFileMap for the webapp meta with path sorting
Derrick Hammer
2024-03-03 03:27:15 -0500
a059980ff0
fix: check local 1st and add it to locations, then return locations in len(locationMap) check
Derrick Hammer
2024-03-02 05:53:54 -0500
b75c8cd3fe
refactor: move local check inside GetCachedStorageLocations to be more transparent
Derrick Hammer
2024-03-02 05:42:12 -0500
1a4890a6c0
feat: add support to check the local store and inject it 1st as a signed location before going into the network
Derrick Hammer
2024-03-02 05:23:39 -0500
ed79c80def
feat: add Get and Has to fileReferenceMap
Derrick Hammer
2024-03-01 22:23:31 -0500
9a2d7ebd31
feat: add Get and Has to directoryReferenceMap
Derrick Hammer
2024-03-01 22:21:49 -0500
eb4e4a9f37
refactor: use static error object
Derrick Hammer
2024-03-01 20:54:16 -0500
1c8efbfba8
fix: change to parsing MetadataExtensionUpdateCID via bytes
Derrick Hammer
2024-03-01 03:41:05 -0500
4b6f71ea1a
fix: init em.Data
Derrick Hammer
2024-03-01 03:30:26 -0500
c00fe56389
fix: need to cast language items to a string
Derrick Hammer
2024-03-01 03:25:20 -0500
05522522bf
refactor: switch to using new intParse method
Derrick Hammer
2024-03-01 03:21:31 -0500
1b950bae08
fix: init m
Derrick Hammer
2024-03-01 03:17:03 -0500
d52e20c0e1
fix: add type switch for bitrate
Derrick Hammer
2024-03-01 03:15:12 -0500
40f9ec7cac
fix: audiochannels is int8
Derrick Hammer
2024-03-01 03:12:14 -0500
12f4b7cdff
fix: bitrate is uint16
Derrick Hammer
2024-03-01 03:10:20 -0500
b813f8599f
fix: uint16 not int16
Derrick Hammer
2024-03-01 03:08:37 -0500
52c5af78a9
fix: asr is parsed as int16
Derrick Hammer
2024-03-01 03:05:11 -0500
ab37004d16
feat: add msgpack decode to MediaFormat
Derrick Hammer
2024-03-01 03:01:30 -0500
889d327c3a
refactor: use decodeIntMap
Derrick Hammer
2024-03-01 02:55:45 -0500
9485c023e7
fix: init mmd.Data
Derrick Hammer
2024-03-01 02:49:50 -0500
28ff1eed48
fix: when we have a proof, the body also has a metadata type byte that needs to be validated
Derrick Hammer
2024-03-01 02:46:10 -0500
f350a37e58
fix: don't actually hash the prefix
Derrick Hammer
2024-03-01 02:36:11 -0500
7c6d11258f
fix: need to prepend HashTypeBlake3 prefix to bodyBytes for b3hash
Derrick Hammer
2024-03-01 02:29:22 -0500
365ba04844
refactor: strip out the proofSectionLength from all for readability of the offsets
Derrick Hammer
2024-03-01 02:24:20 -0500
efb11a9c50
fix: change +4 to +2
Derrick Hammer
2024-03-01 02:19:35 -0500
39903f03e5
fix: verify proofData is 4 items
Derrick Hammer
2024-03-01 02:08:54 -0500
6689c95eea
fix: need to store state vars outside proofData loop
Derrick Hammer
2024-03-01 01:41:15 -0500
280e5b1d71
fix: strip key type prefix
Derrick Hammer
2024-03-01 01:49:00 -0500
258031cb8f
fix: need to store state vars outside proofData loop
Derrick Hammer
2024-03-01 01:41:15 -0500
578cdba32e
refactor: var rename
Derrick Hammer
2024-03-01 01:36:18 -0500
8d7383c466
fix: check 1st byte of pubkey, not mhashType
Derrick Hammer
2024-03-01 01:35:54 -0500
5b7d786662
fix: sigType and mhashType are int8
Derrick Hammer
2024-03-01 01:31:22 -0500
429565562d
fix: need to implement MetadataTypeProof support
Derrick Hammer
2024-03-01 01:24:20 -0500
7c3ef2ae86
feat: add decoding for MediaMetadata
Derrick Hammer
2024-03-01 00:18:07 -0500
fd786ac3c1
refactor: make InitMarshaller signature consistent with InitUnmarshaller
Derrick Hammer
2024-02-29 23:36:48 -0500
2bf906d31c
refactor: change InitUnmarshaller to accept a variable number of metadata types, see if any match, and return what was found
Derrick Hammer
2024-02-29 23:35:45 -0500
f526202fa3
dep: use go 1.21
Derrick Hammer
2024-02-29 23:24:30 -0500
f279eb7e9d
fix: need to use new struct instance, not interface
Derrick Hammer
2024-02-29 12:50:20 -0500
56704ea184
dep: add go.sum
Derrick Hammer
2024-02-29 12:25:35 -0500
1584c38641
fix: check status code, and switch to more light weight http library
Derrick Hammer
2024-02-29 12:25:21 -0500
7bd9cf11ae
refactor: add items methods for directoryReferenceMap and fileReferenceMap
Derrick Hammer
2024-02-29 11:32:13 -0500
5a0b742139
fix: add handshake check to unsigned messages as well
Derrick Hammer
2024-02-28 14:13:44 -0500
47c82c6a03
feat: add new All API that will return all queried locations
Derrick Hammer
2024-02-27 10:49:47 -0500