@@ -31,10 +31,16 @@ Ping pong messages should be exchanged.
...
@@ -31,10 +31,16 @@ Ping pong messages should be exchanged.
- pkg/p2p/protobuf - protobuf message encoding and decoding functions
- pkg/p2p/protobuf - protobuf message encoding and decoding functions
- pkg/pingpong - p2p protocol implementation example
- pkg/pingpong - p2p protocol implementation example
## Restrictions
- Package pkg/p2p only contains generalized abstraction of p2p protocol. It does not impose stream encoding.
- Package pkg/p2p/libp2p and is only allowed to depend on go-libp2p packages given that it is just one pkg/p2p implementation. No other implementation should depend on go-libp2p packages.
- Package pkg/p2p/protobuf provides all the helpers needed to make easer for protocol implementations to use protocol buffers for encoding.
## TODO
## TODO
- Mock testing for pingpong service as the example
- Mock testing for pingpong service as the example
- P2P mock (protocol tester) implementation
- Identity with private keys
- Identity with private keys
- Figure out routing (whether to use libp2p Routing or to abstract hive on top of p2p package)
- Figure out routing (whether to use libp2p Routing or to abstract hive on top of p2p package)