This repository has been archived by the owner on Dec 20, 2023. It is now read-only.
Assign different ChainIDs
to the different subnets
#178
Labels
ChainIDs
to the different subnets
#178
We currently use the same
ChainID
for all subnets in IPC:lotus/build/params_spacenet.go
Line 156 in f081f21
NetworkName
according to theSubnetID
of the subnet, there is no way to differentiate the different subnets byChainID
what could open the door to potential replay attacks.In order to overcome this issue, we should make the
ChainID
for a subnet inferable from itsSubnetID
. We could use a similar approach to the one used by FRC42 to deterministically get a method number integer from a method name string.The text was updated successfully, but these errors were encountered: