SelfAuth supports real-time monitoring and private dynamic authorization services for on-chain operations
The current project is only used for personal test environment verification and has not been verified by the Ethereum main network. At the same time, main.go only implements the basic authorization and verification process, and does not provide security protection for data storage and transmission. For the use of the Ethereum main network environment, please visit the official website. Website: https://selfauth.refitor.com
- go generate: Automatically bind the solidity contract to the go source code
- contract deploy: Supports the deployment of the demo contract SADemo directly through the attached parameter --deploy=true
- event monitor: Supports directional monitoring of EVM events, triggering authorization link sending and google authenticator dynamic verification
- trigger authRequest: Support running demo example to trigger authRequest event, Each Trigger function call will fire the authRequest event
- call authResponse: Each successful verification of the private authorization request will trigger the authResponse function call
- install go
- install abigen
- npm install openzeppelin
- git clone https://github.com/refitor/selfAuth.git
- cd ./selfAuth && cp ./web3/contracts/rscore/SelfAuth.sol ./web3/contracts/demo/
- go mod init selfAuth && go mod tidy
- go generate
- go build -i
- ./selfAuth --deploy=true
- ./selfAuth ===> 1. Trigger authRequest, Each Trigger function call will fire the authRequest event ===> 2. Access the private authorization link received by the mailbox and perform dynamic verification through google authenticator ===> 3. Check verified count, Each successful verification of the private authorization request will trigger the authResponse function call, and increment the verified count in the contract SADemo