go-ethereum/consensus/system_contract/api.go
Péter Garamvölgyi 1dedddbffb
feat: address system contract consensus issues and comments (#1126)
* feat: address system contract consensus issues and comments

* fix Euclid header chain verification
2025-03-02 21:01:28 +01:00

21 lines
657 B
Go

package system_contract
import (
"github.com/scroll-tech/go-ethereum/common"
)
// API is a user facing RPC API to allow controlling the signer and voting
// mechanisms of the proof-of-authority scheme.
type API struct {
system_contract *SystemContract
}
// GetSigners retrieves the list of authorized signers at the specified block.
func (api *API) GetLocalSigner() (common.Address, error) {
return api.system_contract.localSignerAddress(), nil
}
// GetSigners retrieves the list of authorized signers at the specified block.
func (api *API) GetAuthorizedSigner() (common.Address, error) {
return api.system_contract.currentSignerAddressL1(), nil
}