This guide shows how to integrate the OTS plugin into a Redmansion Chain node based on BSC.
- BSC forked node (tag: v1.5.17 or later)
- Go 1.21+
ots/plugin cloned or added as submodule
- Copy
src/consensus/ots_engine.gointonode/consensus/ots/ - Modify
node/core/blockchain.goto callotsEngine.FinalizeBlock() - Import
ots/utils/merkle.gofor building RUID Merkle Tree - Register
otsengine in consensus engine switcher - Rebuild node with
make geth - Monitor OTS events via
eth_getLogsonAnchored(uint256 indexed batchId, bytes32 indexed rootHash, uint64 btcBlockHeight, bytes btcTxHash)
See compatibility.json for tested versions.